@thewhatmatters/wmds 0.4.27 → 0.4.28
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/CHANGELOG.md +50 -0
- package/CONSUMING.md +62 -1
- package/bin/wmds-check.mjs +47 -0
- package/dist/colors.css +92 -0
- package/dist/components/atoms/Badge/badgeStyles.js +6 -6
- package/dist/components/atoms/Band/Band.d.ts +27 -0
- package/dist/components/atoms/Band/Band.d.ts.map +1 -0
- package/dist/components/atoms/Band/Band.js +22 -0
- package/dist/components/atoms/Band/bandStyles.d.ts +20 -0
- package/dist/components/atoms/Band/bandStyles.d.ts.map +1 -0
- package/dist/components/atoms/Band/bandStyles.js +23 -0
- package/dist/components/atoms/Button/ButtonStatusButton.d.ts.map +1 -1
- package/dist/components/atoms/Button/ButtonStatusButton.js +12 -5
- package/dist/components/atoms/Button/buttonStyles.d.ts +1 -1
- package/dist/components/atoms/Button/buttonStyles.d.ts.map +1 -1
- package/dist/components/atoms/Button/buttonStyles.js +2 -2
- package/dist/components/atoms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.js +69 -68
- package/dist/components/atoms/Checkbox/checkboxStyles.d.ts +1 -1
- package/dist/components/atoms/Checkbox/checkboxStyles.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/checkboxStyles.js +1 -1
- package/dist/components/atoms/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/IconButton/IconButton.js +13 -12
- package/dist/components/atoms/IconButton/iconButtonStyles.d.ts +2 -2
- package/dist/components/atoms/IconButton/iconButtonStyles.d.ts.map +1 -1
- package/dist/components/atoms/IconButton/iconButtonStyles.js +1 -1
- package/dist/components/atoms/InlinePill/InlinePill.d.ts +42 -0
- package/dist/components/atoms/InlinePill/InlinePill.d.ts.map +1 -0
- package/dist/components/atoms/InlinePill/InlinePill.js +48 -0
- package/dist/components/atoms/InlinePill/inlinePillStyles.d.ts +27 -0
- package/dist/components/atoms/InlinePill/inlinePillStyles.d.ts.map +1 -0
- package/dist/components/atoms/InlinePill/inlinePillStyles.js +19 -0
- package/dist/components/atoms/Input/Input.d.ts +6 -3
- package/dist/components/atoms/Input/Input.d.ts.map +1 -1
- package/dist/components/atoms/Input/inputShellStyles.d.ts +1 -1
- package/dist/components/atoms/Input/inputShellStyles.d.ts.map +1 -1
- package/dist/components/atoms/Input/inputShellStyles.js +3 -3
- package/dist/components/atoms/Skeleton/skeletonStyles.js +1 -1
- package/dist/components/atoms/Switch/Switch.d.ts.map +1 -1
- package/dist/components/atoms/Switch/Switch.js +45 -44
- package/dist/components/atoms/Switch/switchStyles.d.ts +1 -1
- package/dist/components/atoms/Switch/switchStyles.d.ts.map +1 -1
- package/dist/components/atoms/Switch/switchStyles.js +1 -1
- package/dist/components/atoms/TextArea/textareaShellStyles.js +3 -3
- package/dist/components/molecules/Accordion/accordionStyles.d.ts +1 -1
- package/dist/components/molecules/Accordion/accordionStyles.d.ts.map +1 -1
- package/dist/components/molecules/Accordion/accordionStyles.js +1 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js +80 -122
- package/dist/components/molecules/Card/cardStyles.js +1 -1
- package/dist/components/molecules/ChatQa/chatQaStyles.d.ts +1 -1
- package/dist/components/molecules/ChatQa/chatQaStyles.d.ts.map +1 -1
- package/dist/components/molecules/ChatQa/chatQaStyles.js +1 -1
- package/dist/components/molecules/Chip/chipStyles.js +1 -1
- package/dist/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/molecules/Dropdown/DropdownItem.d.ts +2 -2
- package/dist/components/molecules/Dropdown/DropdownItem.d.ts.map +1 -1
- package/dist/components/molecules/Dropdown/DropdownItem.js +30 -27
- package/dist/components/molecules/Dropdown/dropdownStyles.js +1 -1
- package/dist/components/molecules/Dropdown/resolveOverflow.d.ts +14 -0
- package/dist/components/molecules/Dropdown/resolveOverflow.d.ts.map +1 -0
- package/dist/components/{organisms/Tab/tabOverflow.js → molecules/Dropdown/resolveOverflow.js} +2 -2
- package/dist/components/molecules/Dropdown/useDropdownMenu.d.ts +70 -0
- package/dist/components/molecules/Dropdown/useDropdownMenu.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/useDropdownMenu.js +155 -0
- package/dist/components/molecules/Dropdown/useOverflowMenu.d.ts +71 -0
- package/dist/components/molecules/Dropdown/useOverflowMenu.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/useOverflowMenu.js +61 -0
- package/dist/components/molecules/Field/Field.d.ts.map +1 -1
- package/dist/components/molecules/Field/Field.js +11 -10
- package/dist/components/molecules/LogView/logViewStyles.d.ts +1 -1
- package/dist/components/molecules/LogView/logViewStyles.d.ts.map +1 -1
- package/dist/components/molecules/LogView/logViewStyles.js +1 -1
- package/dist/components/molecules/PillGroup/pillGroupStyles.js +1 -1
- package/dist/components/molecules/Search/searchStyles.js +1 -1
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts +1 -1
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.d.ts.map +1 -1
- package/dist/components/molecules/SegmentedControl/segmentedControlStyles.js +3 -3
- package/dist/components/molecules/Select/Select.d.ts +3 -1
- package/dist/components/molecules/Select/Select.d.ts.map +1 -1
- package/dist/components/molecules/Select/Select.js +75 -119
- package/dist/components/molecules/Select/selectStyles.js +3 -3
- package/dist/components/molecules/Stat/statStyles.d.ts +1 -1
- package/dist/components/molecules/Stat/statStyles.d.ts.map +1 -1
- package/dist/components/molecules/Stat/statStyles.js +1 -1
- package/dist/components/molecules/TextSequence/TextSequence.d.ts.map +1 -1
- package/dist/components/molecules/TextSequence/TextSequence.js +35 -35
- package/dist/components/organisms/AppShell/AppShell.d.ts +2 -0
- package/dist/components/organisms/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/organisms/AppShell/AppShell.js +138 -129
- package/dist/components/organisms/AppShell/appShellStyles.d.ts +2 -0
- package/dist/components/organisms/AppShell/appShellStyles.d.ts.map +1 -1
- package/dist/components/organisms/AppShell/appShellStyles.js +2 -2
- package/dist/components/organisms/Dialog/AlertDialog.d.ts +7 -1
- package/dist/components/organisms/Dialog/AlertDialog.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/AlertDialog.js +54 -50
- package/dist/components/organisms/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/Dialog.js +52 -71
- package/dist/components/organisms/Dialog/dialogStyles.d.ts +14 -1
- package/dist/components/organisms/Dialog/dialogStyles.d.ts.map +1 -1
- package/dist/components/organisms/Dialog/dialogStyles.js +3 -3
- package/dist/components/organisms/FilterPanel/FilterPanel.d.ts.map +1 -1
- package/dist/components/organisms/FilterPanel/FilterPanel.js +52 -42
- package/dist/components/organisms/IntakeModal/IntakeModal.d.ts +6 -1
- package/dist/components/organisms/IntakeModal/IntakeModal.d.ts.map +1 -1
- package/dist/components/organisms/IntakeModal/IntakeModal.js +54 -66
- package/dist/components/organisms/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/components/organisms/MoreMenu/MoreMenu.js +45 -101
- package/dist/components/organisms/Panel/Panel.d.ts.map +1 -1
- package/dist/components/organisms/Panel/Panel.js +44 -53
- package/dist/components/organisms/Sheet/Sheet.d.ts.map +1 -1
- package/dist/components/organisms/Sheet/Sheet.js +69 -90
- package/dist/components/organisms/SiteNav/SiteNav.d.ts +0 -9
- package/dist/components/organisms/SiteNav/SiteNav.d.ts.map +1 -1
- package/dist/components/organisms/SiteNav/SiteNav.js +236 -286
- package/dist/components/organisms/SiteNav/siteNavStyles.js +1 -1
- package/dist/components/organisms/Tab/Tab.d.ts.map +1 -1
- package/dist/components/organisms/Tab/Tab.js +77 -127
- package/dist/components/organisms/Tab/tabStyles.d.ts +2 -1
- package/dist/components/organisms/Tab/tabStyles.d.ts.map +1 -1
- package/dist/components/organisms/Tab/tabStyles.js +2 -2
- package/dist/fonts.css +10 -0
- package/dist/grid.css +38 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +135 -131
- package/dist/lib/contrast.d.ts +11 -0
- package/dist/lib/contrast.d.ts.map +1 -0
- package/dist/lib/dialogOverlay.d.ts +27 -1
- package/dist/lib/dialogOverlay.d.ts.map +1 -1
- package/dist/lib/dialogOverlay.js +87 -25
- package/dist/lib/typography.d.ts +1 -1
- package/dist/lib/typography.d.ts.map +1 -1
- package/dist/shape.css +24 -3
- package/dist/styles.css +1 -1
- package/dist/typography.css +55 -8
- package/docs/components.md +4 -2
- package/docs/exports.json +55 -1
- package/docs/patterns/components-accordion--flush.tsx +1 -1
- package/docs/patterns/components-appshell--portal-dashboard-pattern.tsx +1 -1
- package/docs/patterns/components-avatar--dropdown-row.tsx +1 -1
- package/docs/patterns/components-badge--outline-tags.tsx +1 -1
- package/docs/patterns/components-badge--status-pill.tsx +1 -1
- package/docs/patterns/components-badge--with-avatar.tsx +1 -1
- package/docs/patterns/components-band--page-in-bands.tsx +39 -0
- package/docs/patterns/components-breadcrumb--editorial.tsx +1 -1
- package/docs/patterns/components-breadcrumb--long-path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--path.tsx +1 -1
- package/docs/patterns/components-breadcrumb--router-links.tsx +1 -1
- package/docs/patterns/components-button-button--copy-button.tsx +1 -1
- package/docs/patterns/components-button-button--destructive-action.tsx +1 -1
- package/docs/patterns/components-button-button--external-link.tsx +1 -1
- package/docs/patterns/components-button-button--ghost-action.tsx +1 -1
- package/docs/patterns/components-button-button--inverse-action.tsx +1 -1
- package/docs/patterns/components-button-button--link-render.tsx +1 -1
- package/docs/patterns/components-button-button--multi-state-badge.tsx +1 -1
- package/docs/patterns/components-button-button--outline-mono.tsx +1 -1
- package/docs/patterns/components-button-button--primary-action.tsx +1 -1
- package/docs/patterns/components-button-button--row-hug.tsx +1 -1
- package/docs/patterns/components-button-button--row-layout.tsx +1 -1
- package/docs/patterns/components-button-button--secondary-action.tsx +1 -1
- package/docs/patterns/components-button-button--suggestion-pills.tsx +1 -1
- package/docs/patterns/components-button-button--with-count.tsx +1 -1
- package/docs/patterns/components-button-button--with-icon.tsx +1 -1
- package/docs/patterns/components-button-floatingactionbutton--vertical-actions.tsx +1 -1
- package/docs/patterns/components-calembed--pattern-skip-in-footer.tsx +1 -1
- package/docs/patterns/components-card-card--body-slot-occupancy-history.tsx +1 -1
- package/docs/patterns/components-card-card--headerless-media.tsx +1 -1
- package/docs/patterns/components-card-card--outlined-layout.tsx +1 -1
- package/docs/patterns/components-card-card--pinned-height.tsx +1 -1
- package/docs/patterns/components-card-card--terminal-frame.tsx +1 -1
- package/docs/patterns/components-card-selectablecard--selectable-cards-pattern.tsx +1 -1
- package/docs/patterns/components-carousel--image-carousel.tsx +1 -1
- package/docs/patterns/components-chart--audience-activity-heatmap.tsx +1 -1
- package/docs/patterns/components-chart--cartesian-no-data-gaps.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-history-in-card.tsx +1 -1
- package/docs/patterns/components-chart--occupancy-in-card.tsx +1 -1
- package/docs/patterns/components-chart--post-reach-distribution.tsx +1 -1
- package/docs/patterns/components-chart--ranked-audience-breakdown.tsx +1 -1
- package/docs/patterns/components-chart--revenue-by-line.tsx +1 -1
- package/docs/patterns/components-chart--segmented-ring-pattern.tsx +1 -1
- package/docs/patterns/components-chart--unit-grid-composition.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-chat-dock.tsx +1 -1
- package/docs/patterns/components-chatdock--pattern-start-project-gate.tsx +1 -1
- package/docs/patterns/components-chatqa--pattern-qa-with-reply.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-count.tsx +1 -1
- package/docs/patterns/components-checkbox-checkbox--with-description.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--default.tsx +1 -1
- package/docs/patterns/components-checkbox-checkboxgroup--option-counts.tsx +1 -1
- package/docs/patterns/components-copyfield--clipboard-blocked.tsx +1 -1
- package/docs/patterns/components-copyfield--copied.tsx +1 -1
- package/docs/patterns/components-copyfield--copy-key.tsx +1 -1
- package/docs/patterns/components-copyfield--on-navy.tsx +1 -1
- package/docs/patterns/components-descriptionlist--details.tsx +1 -1
- package/docs/patterns/components-descriptionlist--post-metadata.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-destructive.tsx +1 -1
- package/docs/patterns/components-dialog--alert-dialog-typed-confirmation.tsx +54 -0
- package/docs/patterns/components-dialog--default-dialog.tsx +1 -1
- package/docs/patterns/components-dialog--form-dialog.tsx +1 -1
- package/docs/patterns/components-displaycontrols--page-utilities.tsx +1 -1
- package/docs/patterns/components-displaycontrols--theme-switch.tsx +1 -1
- package/docs/patterns/components-field--horizontal-input.tsx +1 -1
- package/docs/patterns/components-field--horizontal-text-area.tsx +1 -1
- package/docs/patterns/components-field--multi-control.tsx +1 -1
- package/docs/patterns/components-filterpanel--panel.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-ruled-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-hero-with-gallery-intro.tsx +1 -1
- package/docs/patterns/components-footerreveal--marketing-page-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--ruled-grid-footer-pattern.tsx +1 -1
- package/docs/patterns/components-footerreveal--sequenced-marketing-hero.tsx +1 -1
- package/docs/patterns/components-herointro--two-line-intro.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-pattern.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-text-sequence.tsx +1 -1
- package/docs/patterns/components-herotilestack--marketing-hero-with-gallery-intro.tsx +1 -1
- package/docs/patterns/components-indexlist--post-index.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--booked-pattern.tsx +1 -1
- package/docs/patterns/components-intakeconfirmation--emailed-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--about-you-pattern.tsx +1 -1
- package/docs/patterns/components-intakeform--short-form-pattern.tsx +1 -1
- package/docs/patterns/components-intakemodal--intake-modal-pattern.tsx +1 -1
- package/docs/patterns/components-kbd--command-row.tsx +1 -1
- package/docs/patterns/components-kbd--numbered-choices.tsx +1 -1
- package/docs/patterns/components-kbd--shortcut.tsx +1 -1
- package/docs/patterns/components-linktile--resource-tile.tsx +1 -1
- package/docs/patterns/components-linktile--router-link.tsx +1 -1
- package/docs/patterns/components-logview--detail-pane.tsx +1 -1
- package/docs/patterns/components-logview--log-viewer.tsx +1 -1
- package/docs/patterns/components-moremenu--action-menu.tsx +1 -1
- package/docs/patterns/components-moremenu--in-card-header.tsx +1 -1
- package/docs/patterns/components-navlist--app-sidebar.tsx +1 -1
- package/docs/patterns/components-navlist--side-nav-settings.tsx +1 -1
- package/docs/patterns/components-pageheader--app-header-pattern.tsx +1 -1
- package/docs/patterns/components-pageheader--page-section-header.tsx +1 -1
- package/docs/patterns/components-pageheader--toolbar-header.tsx +1 -1
- package/docs/patterns/components-panel--end-detail-rail.tsx +1 -1
- package/docs/patterns/components-pillgroup--pill-group-pattern.tsx +1 -1
- package/docs/patterns/components-promptbar--pattern-prompt-bar.tsx +1 -1
- package/docs/patterns/components-prose--article-body.tsx +1 -1
- package/docs/patterns/components-radio-radiogroup--default.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--project-gallery-pattern.tsx +1 -1
- package/docs/patterns/components-scrollhorizontal--with-intro.tsx +1 -1
- package/docs/patterns/components-sectioncaption--column-caption.tsx +1 -1
- package/docs/patterns/components-sectioncaption--with-action.tsx +1 -1
- package/docs/patterns/components-sheet--bottom-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--end-sheet.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-header-actions.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet-url-deep-link.tsx +1 -1
- package/docs/patterns/components-sheet--side-sheet.tsx +1 -1
- package/docs/patterns/components-sitenav--brand-and-cta.tsx +1 -1
- package/docs/patterns/components-sitenav--centered-links.tsx +1 -1
- package/docs/patterns/components-sitenav--compact.tsx +1 -1
- package/docs/patterns/components-sitenav--marketing-header.tsx +1 -1
- package/docs/patterns/components-sitenav--mega-menu.tsx +1 -1
- package/docs/patterns/components-stat--hero-stat.tsx +1 -1
- package/docs/patterns/components-stat--insights-row.tsx +1 -1
- package/docs/patterns/components-stepprogress--step-progress-pattern.tsx +1 -1
- package/docs/patterns/components-switch--default.tsx +1 -1
- package/docs/patterns/components-switch--settings-row.tsx +1 -1
- package/docs/patterns/components-tab--settings-pages.tsx +1 -1
- package/docs/patterns/components-table--approvals-with-sheet.tsx +1 -1
- package/docs/patterns/components-table--approvals.tsx +1 -1
- package/docs/patterns/components-table--basic.tsx +1 -1
- package/docs/patterns/components-taskrows--action-details.tsx +1 -1
- package/docs/patterns/components-taskrows--capsules.tsx +1 -1
- package/docs/patterns/components-taskrows--card-with-status-rows.tsx +1 -1
- package/docs/patterns/components-taskrows--controlled-expand.tsx +1 -1
- package/docs/patterns/components-taskrows--custom-slots.tsx +1 -1
- package/docs/patterns/components-taskrows--needs-you-table.tsx +1 -1
- package/docs/patterns/components-taskrows--status-list.tsx +1 -1
- package/docs/patterns/components-taskrows--tag-chips.tsx +1 -1
- package/docs/patterns/components-textarea--save-status.tsx +1 -1
- package/docs/patterns/components-textlink--external-destination.tsx +1 -1
- package/docs/patterns/components-textlink--inline-prose.tsx +1 -1
- package/docs/patterns/components-textlink--quiet-title.tsx +1 -1
- package/docs/patterns/components-textlink--supporting-copy.tsx +1 -1
- package/docs/patterns/components-textsequence--default.tsx +1 -1
- package/docs/patterns/components-textsequence--reduced-motion.tsx +1 -1
- package/docs/patterns/components-textsequence--shapes.tsx +1 -1
- package/docs/patterns/components-tilegrid--masonry.tsx +1 -1
- package/docs/patterns/components-toast--stacked-notifications.tsx +1 -1
- package/docs/patterns/components-tooltip--controlled.tsx +1 -1
- package/docs/patterns/components-tooltip--disabled-control.tsx +1 -1
- package/docs/patterns/components-tooltip--icon-action.tsx +1 -1
- package/docs/patterns/components-tooltip--keyboard-shortcut.tsx +1 -1
- package/docs/patterns/components-tooltip--placement.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--horizontal-rail.tsx +1 -1
- package/docs/patterns/foundations-scroll-fade--overflowing-list.tsx +1 -1
- package/docs/patterns/guides-chart-explorations--comparison-gallery.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-grid.tsx +1 -1
- package/docs/patterns/guides-filter-panel--filtered-index.tsx +1 -1
- package/docs/patterns/guides-overlay-flows--notification-preferences.tsx +1 -1
- package/docs/patterns/guides-post-page--post-page.tsx +1 -1
- package/docs/patterns/guides-profile-typography--editorial-profile.tsx +1 -1
- package/docs/patterns/guides-resource-detail--detail.tsx +1 -1
- package/docs/patterns/index.json +17 -1
- package/package.json +1 -1
- package/dist/components/organisms/Tab/tabOverflow.d.ts +0 -14
- package/dist/components/organisms/Tab/tabOverflow.d.ts.map +0 -1
|
@@ -3,38 +3,38 @@ import { cn as e } from "../../../lib/cn.js";
|
|
|
3
3
|
import { motionTransitionProp as t } from "../../../lib/motion.js";
|
|
4
4
|
import "../Input/inputShellStyles.js";
|
|
5
5
|
import { InputStatusBanner as ee } from "../inputShared/InputStatusBanner.js";
|
|
6
|
-
import { switchDescriptionClasses as n, switchDescriptionRowClasses as te, switchHiddenInputClasses as
|
|
7
|
-
import { forwardRef as h, useId as oe, useState as
|
|
8
|
-
import { Loader2 as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { motion as
|
|
6
|
+
import { switchDescriptionClasses as n, switchDescriptionRowClasses as te, switchHiddenInputClasses as r, switchHitTargetDescriptionAlignClasses as i, switchHitTargetSizeClasses as a, switchLabelClassesFor as o, switchLayouts as s, switchRowBaseClasses as ne, switchRowLabelOnlyClasses as re, switchRowSizeClasses as ie, switchSettingsRowClasses as c, switchSizes as l, switchStatusBannerClassesFor as u, switchTextColumnClasses as d, switchThumbClasses as f, switchThumbOffsetPx as p, switchThumbSizeClasses as m, switchTrackClassesFor as ae } from "./switchStyles.js";
|
|
7
|
+
import { forwardRef as h, useId as oe, useState as se } from "react";
|
|
8
|
+
import { Loader2 as g } from "lucide-react";
|
|
9
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
10
|
+
import { motion as b } from "motion/react";
|
|
11
11
|
//#region src/components/atoms/Switch/Switch.tsx
|
|
12
|
-
var
|
|
12
|
+
var x = {
|
|
13
13
|
sm: "sm",
|
|
14
14
|
md: "md"
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function S(e) {
|
|
17
17
|
e.message != null && e.status == null && console.warn("[WMDS Switch] `message` requires `status`.");
|
|
18
18
|
}
|
|
19
|
-
var C = h(function({ size:
|
|
19
|
+
var C = h(function({ size: s = "md", layout: l = "inline", label: h, labelHidden: C = !1, description: w, status: T, message: E, loading: D = !1, className: O, disabled: k, readOnly: A, checked: j, defaultChecked: M, id: N, onChange: P, ...F }, I) {
|
|
20
20
|
let L = oe(), R = N ?? L;
|
|
21
|
-
|
|
21
|
+
S({
|
|
22
22
|
status: T,
|
|
23
23
|
message: E
|
|
24
24
|
});
|
|
25
|
-
let z = j !== void 0, [B, V] =
|
|
25
|
+
let z = j !== void 0, [B, V] = se(M ?? !1), H = z ? !!j : B, U = k || D, W = D && !k, G = E != null && E.length > 0 && T != null, K = G ? `${R}-message` : void 0, q = w != null && !C ? `${R}-description` : void 0, ce = [
|
|
26
26
|
F["aria-describedby"],
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
q,
|
|
28
|
+
K
|
|
29
29
|
].filter(Boolean).join(" ") || void 0, le = (e) => {
|
|
30
|
-
if (A) {
|
|
30
|
+
if (A || W) {
|
|
31
31
|
e.preventDefault();
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
z || V(e.target.checked), P?.(e);
|
|
35
|
-
},
|
|
36
|
-
className: e("relative flex shrink-0 items-center justify-center",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
35
|
+
}, ue = ae(s, H, U, G ? void 0 : T), J = w != null && !C, Y = t("fast"), X = p[s], Z = (t) => /* @__PURE__ */ y("span", {
|
|
36
|
+
className: e("relative flex shrink-0 items-center justify-center", a[s], t),
|
|
37
|
+
children: [/* @__PURE__ */ v("input", {
|
|
38
38
|
...F,
|
|
39
39
|
ref: I,
|
|
40
40
|
id: R,
|
|
@@ -42,68 +42,69 @@ var C = h(function({ size: o = "md", layout: l = "inline", label: h, labelHidden
|
|
|
42
42
|
role: "switch",
|
|
43
43
|
checked: z ? j : void 0,
|
|
44
44
|
defaultChecked: z ? void 0 : M,
|
|
45
|
-
disabled:
|
|
45
|
+
disabled: k,
|
|
46
|
+
"aria-disabled": W || void 0,
|
|
46
47
|
readOnly: A,
|
|
47
48
|
"aria-invalid": T === "error" || void 0,
|
|
48
49
|
"aria-describedby": ce,
|
|
49
50
|
"aria-busy": D || void 0,
|
|
50
51
|
onChange: le,
|
|
51
|
-
className:
|
|
52
|
-
}), /* @__PURE__ */
|
|
53
|
-
className:
|
|
52
|
+
className: r
|
|
53
|
+
}), /* @__PURE__ */ v("span", {
|
|
54
|
+
className: ue,
|
|
54
55
|
"aria-hidden": !0,
|
|
55
|
-
children: D ? /* @__PURE__ */
|
|
56
|
-
className: e(m[
|
|
56
|
+
children: D ? /* @__PURE__ */ v(b.span, {
|
|
57
|
+
className: e(m[s], "flex items-center justify-center"),
|
|
57
58
|
animate: { x: H ? X : 0 },
|
|
58
59
|
transition: Y,
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ v(g, {
|
|
60
61
|
className: "size-full animate-spin text-fg",
|
|
61
62
|
strokeWidth: 2
|
|
62
63
|
})
|
|
63
|
-
}) : /* @__PURE__ */
|
|
64
|
-
className: e(f, m[
|
|
64
|
+
}) : /* @__PURE__ */ v(b.span, {
|
|
65
|
+
className: e(f, m[s]),
|
|
65
66
|
animate: { x: H ? X : 0 },
|
|
66
67
|
transition: Y
|
|
67
68
|
})
|
|
68
69
|
})]
|
|
69
|
-
}), Q = C ? /* @__PURE__ */
|
|
70
|
+
}), Q = C ? /* @__PURE__ */ v("span", {
|
|
70
71
|
className: "sr-only",
|
|
71
72
|
children: h
|
|
72
|
-
}) : /* @__PURE__ */
|
|
73
|
+
}) : /* @__PURE__ */ y("span", {
|
|
73
74
|
className: d,
|
|
74
|
-
children: [/* @__PURE__ */
|
|
75
|
-
className:
|
|
75
|
+
children: [/* @__PURE__ */ v("span", {
|
|
76
|
+
className: o(U, J),
|
|
76
77
|
children: h
|
|
77
|
-
}), J ? /* @__PURE__ */
|
|
78
|
-
id:
|
|
78
|
+
}), J ? /* @__PURE__ */ v("span", {
|
|
79
|
+
id: q,
|
|
79
80
|
className: n,
|
|
80
81
|
children: w
|
|
81
82
|
}) : null]
|
|
82
|
-
}), $ = /* @__PURE__ */
|
|
83
|
+
}), $ = /* @__PURE__ */ v("label", {
|
|
83
84
|
htmlFor: R,
|
|
84
|
-
className: e(
|
|
85
|
-
children: C ? /* @__PURE__ */
|
|
85
|
+
className: e(ne, l === "settings" ? c : re, l === "inline" && !J && ie[s], l === "inline" && J && void 0, U && "cursor-not-allowed", O),
|
|
86
|
+
children: C ? /* @__PURE__ */ y(_, { children: [Z(), /* @__PURE__ */ v("span", {
|
|
86
87
|
className: "sr-only",
|
|
87
88
|
children: h
|
|
88
|
-
})] }) : l === "settings" ? /* @__PURE__ */
|
|
89
|
-
className: te[
|
|
90
|
-
children: [Z(
|
|
91
|
-
}) : /* @__PURE__ */
|
|
92
|
-
className:
|
|
89
|
+
})] }) : l === "settings" ? /* @__PURE__ */ y(_, { children: [Q, Z()] }) : J ? /* @__PURE__ */ y("span", {
|
|
90
|
+
className: te[s],
|
|
91
|
+
children: [Z(i[s]), Q]
|
|
92
|
+
}) : /* @__PURE__ */ y(_, { children: [Z(), C ? null : /* @__PURE__ */ v("span", {
|
|
93
|
+
className: o(U),
|
|
93
94
|
children: h
|
|
94
95
|
})] })
|
|
95
96
|
});
|
|
96
|
-
return !
|
|
97
|
+
return !G || T == null || K == null ? $ : /* @__PURE__ */ y("div", {
|
|
97
98
|
className: "flex w-full flex-col gap-1.5",
|
|
98
|
-
children: [$, /* @__PURE__ */
|
|
99
|
+
children: [$, /* @__PURE__ */ v(ee, {
|
|
99
100
|
status: T,
|
|
100
101
|
message: E,
|
|
101
|
-
messageId:
|
|
102
|
-
size:
|
|
102
|
+
messageId: K,
|
|
103
|
+
size: x[s],
|
|
103
104
|
messagePosition: "bottom",
|
|
104
105
|
bannerClassName: u(T)
|
|
105
106
|
})]
|
|
106
107
|
});
|
|
107
108
|
});
|
|
108
109
|
//#endregion
|
|
109
|
-
export { C as Switch,
|
|
110
|
+
export { C as Switch, s as switchLayouts, l as switchSizes };
|
|
@@ -28,7 +28,7 @@ export declare const switchRowBaseClasses = "group/switch relative flex w-full c
|
|
|
28
28
|
export declare const switchRowLabelOnlyClasses = "items-center";
|
|
29
29
|
export declare const switchSettingsRowClasses = "items-center justify-between gap-4";
|
|
30
30
|
export declare const switchRowDisabledClasses = "cursor-not-allowed";
|
|
31
|
-
export declare const switchHiddenInputClasses = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed";
|
|
31
|
+
export declare const switchHiddenInputClasses = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed aria-disabled:cursor-not-allowed";
|
|
32
32
|
export declare const switchFocusRingClasses = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
|
|
33
33
|
export declare function switchTrackClassesFor(size: SwitchSize, checked: boolean, disabled?: boolean, status?: InputStatus): string;
|
|
34
34
|
export declare function switchLabelClassesFor(disabled?: boolean, withDescription?: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switchStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Switch/switchStyles.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,WAAW,uBAAwB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAGjE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAIlC,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,0CAA0C,CAAC;AAEjF,8GAA8G;AAC9G,eAAO,MAAM,kBAAkB,gDAAgD,CAAC;AAEhF,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAE9D,eAAO,MAAM,wBAAwB,QAAiD,CAAC;AAEvF,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AAEtE,eAAO,MAAM,iCAAiC,QAA0C,CAAC;AAEzF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAGlE,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7E,CAAC;AAEF,eAAO,MAAM,oBAAoB,qDAAqD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,eAAO,MAAM,wBAAwB,uCAAuC,CAAC;AAE7E,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"switchStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Switch/switchStyles.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,WAAW,uBAAwB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,aAAa,iCAAkC,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,oEAAoE;AACpE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG3D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAGjE,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAIlC,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,4BAA4B,CAAC;AAErE,uFAAuF;AACvF,eAAO,MAAM,yBAAyB,0CAA0C,CAAC;AAEjF,8GAA8G;AAC9G,eAAO,MAAM,kBAAkB,gDAAgD,CAAC;AAEhF,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAE9D,eAAO,MAAM,wBAAwB,QAAiD,CAAC;AAEvF,eAAO,MAAM,uBAAuB,iCAAiC,CAAC;AAEtE,eAAO,MAAM,iCAAiC,QAA0C,CAAC;AAEzF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAGlE,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAG7E,CAAC;AAEF,eAAO,MAAM,oBAAoB,qDAAqD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,eAAO,MAAM,wBAAwB,uCAAuC,CAAC;AAE7E,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,+HACyF,CAAC;AAE/H,eAAO,MAAM,sBAAsB,sKACkI,CAAC;AAEtK,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,WAAW,GACnB,MAAM,CASR;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,EAAE,OAAO,GAAG,MAAM,CAK3F;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAKxE"}
|
|
@@ -25,7 +25,7 @@ var a = ["sm", "md"], o = ["inline", "settings"], s = {
|
|
|
25
25
|
}, S = {
|
|
26
26
|
sm: "mt-px",
|
|
27
27
|
md: "mt-0.5"
|
|
28
|
-
}, C = "group/switch relative flex w-full cursor-pointer", w = "items-center", T = "items-center justify-between gap-4", E = "cursor-not-allowed", D = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed", O = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
|
|
28
|
+
}, C = "group/switch relative flex w-full cursor-pointer", w = "items-center", T = "items-center justify-between gap-4", E = "cursor-not-allowed", D = "peer absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed aria-disabled:cursor-not-allowed", O = "peer-focus-visible:outline-none peer-focus-visible:ring-2 peer-focus-visible:ring-focus-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-body";
|
|
29
29
|
function k(t, n, r, a) {
|
|
30
30
|
return e(f, l[t], O, n ? m : p, a != null && i[a], r && "opacity-50");
|
|
31
31
|
}
|
|
@@ -7,9 +7,9 @@ var g = [
|
|
|
7
7
|
"vertical",
|
|
8
8
|
"both"
|
|
9
9
|
], _ = {
|
|
10
|
-
sm: "rounded-
|
|
11
|
-
md: "rounded-
|
|
12
|
-
lg: "rounded-
|
|
10
|
+
sm: "rounded-[var(--radius-control-box)]",
|
|
11
|
+
md: "rounded-[var(--radius-control-box)]",
|
|
12
|
+
lg: "rounded-[var(--radius-control-box)]"
|
|
13
13
|
}, v = {
|
|
14
14
|
none: "resize-none",
|
|
15
15
|
vertical: "resize-y",
|
|
@@ -40,7 +40,7 @@ export declare const accordionLabelPlainClasses: string;
|
|
|
40
40
|
export declare const accordionLabelRowClasses: string;
|
|
41
41
|
export declare const accordionTrailingClusterClasses = "flex shrink-0 items-center gap-2";
|
|
42
42
|
/** Chevron column — decorative inside the disclosure button. */
|
|
43
|
-
export declare const accordionChevronSlotClasses = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-
|
|
43
|
+
export declare const accordionChevronSlotClasses = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-[var(--radius-control)] text-muted";
|
|
44
44
|
export declare const accordionChevronRotateClasses: string;
|
|
45
45
|
export declare const accordionChevronOpenClasses = "rotate-180";
|
|
46
46
|
export declare const accordionPanelInnerClasses = "overflow-hidden";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/accordionStyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,uCAAwC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB,+FACyD,CAAC;AAE/F,qEAAqE;AACrE,eAAO,MAAM,6BAA6B,2CAA2C,CAAC;AAEtF,eAAO,MAAM,2BAA2B,6DACkC,CAAC;AAE3E,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,eAAO,MAAM,wBAAwB,QACiD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,QACgD,CAAC;AAEvF,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,QAEZ,CAAC;AAE7B,mDAAmD;AACnD,eAAO,MAAM,iCAAiC,mBAAwB,CAAC;AAEvE,sCAAsC;AACtC,eAAO,MAAM,+BAA+B,mBAA4B,CAAC;AAEzE,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAEtD,eAAO,MAAM,2BAA2B,QACqC,CAAC;AAE9E,eAAO,MAAM,8BAA8B,QACyC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uFAC6C,CAAC;AAEvF,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,QAA8B,CAAC;AAEvE,yEAAyE;AACzE,eAAO,MAAM,kCAAkC,QAErB,CAAC;AAE3B,eAAO,MAAM,2BAA2B,qDAAqD,CAAC;AAE9F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,QAAuD,CAAC;AAE/F,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,QAA4E,CAAC;AAElH,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"accordionStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/accordionStyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB,uCAAwC,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB,+FACyD,CAAC;AAE/F,qEAAqE;AACrE,eAAO,MAAM,6BAA6B,2CAA2C,CAAC;AAEtF,eAAO,MAAM,2BAA2B,6DACkC,CAAC;AAE3E,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,eAAO,MAAM,wBAAwB,QACiD,CAAC;AAEvF,eAAO,MAAM,yBAAyB,QACgD,CAAC;AAEvF,6FAA6F;AAC7F,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAElF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,QAEZ,CAAC;AAE7B,mDAAmD;AACnD,eAAO,MAAM,iCAAiC,mBAAwB,CAAC;AAEvE,sCAAsC;AACtC,eAAO,MAAM,+BAA+B,mBAA4B,CAAC;AAEzE,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,SAAS,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAEtD,eAAO,MAAM,2BAA2B,QACqC,CAAC;AAE9E,eAAO,MAAM,8BAA8B,QACyC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uFAC6C,CAAC;AAEvF,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,QAA8B,CAAC;AAEvE,yEAAyE;AACzE,eAAO,MAAM,kCAAkC,QAErB,CAAC;AAE3B,eAAO,MAAM,2BAA2B,qDAAqD,CAAC;AAE9F,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,QAAuD,CAAC;AAE/F,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,QAA4E,CAAC;AAElH,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,sGAC6D,CAAC;AAEtG,eAAO,MAAM,6BAA6B,QAC6B,CAAC;AAExE,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAE5D,yFAAyF;AACzF,eAAO,MAAM,gCAAgC,QAC+B,CAAC;AAE7E,eAAO,MAAM,mCAAmC,QACqC,CAAC;AAEtF,2DAA2D;AAC3D,eAAO,MAAM,iCAAiC,mDAAmD,CAAC;AAElG,mGAAmG;AACnG,eAAO,MAAM,4BAA4B,QAAmC,CAAC"}
|
|
@@ -7,6 +7,6 @@ var a = [
|
|
|
7
7
|
"list",
|
|
8
8
|
"capsule",
|
|
9
9
|
"plain"
|
|
10
|
-
], o = "flex w-full flex-col overflow-hidden rounded-lg bg-surface font-sans text-fg shadow-raised", s = "flex w-full flex-col font-sans text-fg", c = `flex w-full min-h-0 flex-col ${i} font-sans text-fg`, l = "flex w-full flex-col font-sans text-fg", u = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), d = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), f = "border-b border-border last:border-b-0", p = "overflow-hidden bg-surface shadow-raised transition-[border-radius,background-color] " + t("medium"), m = r, h = n, g = "flex h-11 w-full items-center gap-2.5 text-left px-4", _ = "flex h-11 w-full items-center gap-2.5 text-left px-2.5", v = "-mx-2 flex h-11 w-[calc(100%+1rem)] items-center gap-2.5 rounded-lg px-2 text-left", y = "cursor-pointer hover:bg-ghost-hover active:bg-ghost-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset " + t("fast"), b = "flex size-6 shrink-0 items-center justify-center", x = `${e("body")} min-w-0 flex-1 truncate`, S = `${e("ui-label")} min-w-0 flex-1 truncate text-[0.8125rem]`, C = "flex shrink-0 items-center gap-2", w = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-
|
|
10
|
+
], o = "flex w-full flex-col overflow-hidden rounded-lg bg-surface font-sans text-fg shadow-raised", s = "flex w-full flex-col font-sans text-fg", c = `flex w-full min-h-0 flex-col ${i} font-sans text-fg`, l = "flex w-full flex-col font-sans text-fg", u = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), d = "overflow-hidden border-b border-border last:border-b-0 " + t("fast"), f = "border-b border-border last:border-b-0", p = "overflow-hidden bg-surface shadow-raised transition-[border-radius,background-color] " + t("medium"), m = r, h = n, g = "flex h-11 w-full items-center gap-2.5 text-left px-4", _ = "flex h-11 w-full items-center gap-2.5 text-left px-2.5", v = "-mx-2 flex h-11 w-[calc(100%+1rem)] items-center gap-2.5 rounded-lg px-2 text-left", y = "cursor-pointer hover:bg-ghost-hover active:bg-ghost-active focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset " + t("fast"), b = "flex size-6 shrink-0 items-center justify-center", x = `${e("body")} min-w-0 flex-1 truncate`, S = `${e("ui-label")} min-w-0 flex-1 truncate text-[0.8125rem]`, C = "flex shrink-0 items-center gap-2", w = "-ml-2 flex size-7 shrink-0 items-center justify-center rounded-[var(--radius-control)] text-muted", T = "inline-flex " + t("medium") + " transition-transform", E = "rotate-180", D = "overflow-hidden", O = "type-body text-muted tracking-normal pb-4 pt-0 px-4", k = "type-body text-muted tracking-normal pb-2.5 pt-0 px-2.5", A = "type-body text-muted tracking-normal pb-4 pt-0";
|
|
11
11
|
//#endregion
|
|
12
12
|
export { E as accordionChevronOpenClasses, T as accordionChevronRotateClasses, w as accordionChevronSlotClasses, p as accordionItemCapsuleClasses, m as accordionItemCapsuleClosedClasses, h as accordionItemCapsuleOpenClasses, f as accordionItemFlushClasses, u as accordionItemListClasses, d as accordionItemPlainClasses, x as accordionLabelPlainClasses, S as accordionLabelRowClasses, b as accordionLeadingSlotClasses, k as accordionPanelContentCapsuleClasses, A as accordionPanelContentFlushClasses, O as accordionPanelContentListClasses, D as accordionPanelInnerClasses, c as accordionRootCapsuleClasses, o as accordionRootListClasses, s as accordionRootListInsetClasses, l as accordionRootPlainClasses, C as accordionTrailingClusterClasses, _ as accordionTriggerCapsuleClasses, v as accordionTriggerFlushClasses, y as accordionTriggerInteractiveClasses, g as accordionTriggerListClasses, a as accordionVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAS5D,OAAO,EAUL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,8CAA8C;AAC9C,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,GAAG,EAAE,MAAM,CAAC;IACZ,2DAA2D;IAC3D,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,uBAAuB,EAAE,gBAGrC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,iFAAiF;IACjF,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,YAAY,CAAC;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC;AAED,KAAK,cAAc,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAAC;AAEjD,iEAAiE;AACjE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,EAAE,EAC1B,QAAQ,SAAI,GACX,cAAc,EAAE,CAiBlB;AAkHD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAY,EACZ,SAAqB,EACrB,OAAgB,EAChB,UAA8B,EAC9B,MAAM,EAAE,UAAU,EAClB,SAAS,GACV,EAAE,eAAe,+BAwCjB"}
|
|
@@ -4,17 +4,18 @@ import { ButtonIcon as t } from "../../atoms/Button/ButtonIcon.js";
|
|
|
4
4
|
import { IconButton as n } from "../../atoms/IconButton/IconButton.js";
|
|
5
5
|
import { Dropdown as r } from "../Dropdown/Dropdown.js";
|
|
6
6
|
import { measureDropdownMenuStyle as i } from "../Dropdown/dropdownMenuPosition.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { useDropdownMenu as a } from "../Dropdown/useDropdownMenu.js";
|
|
8
|
+
import { breadcrumbItemClasses as o, breadcrumbLinkClasses as s, breadcrumbListClasses as c, breadcrumbMoreClasses as l, breadcrumbPageClasses as u, breadcrumbSeparatorClasses as d, breadcrumbSeparators as f, breadcrumbSlashClasses as p, breadcrumbTextClasses as m, breadcrumbVariantClasses as h, breadcrumbVariants as g } from "./breadcrumbStyles.js";
|
|
9
|
+
import { Fragment as _, useRef as v } from "react";
|
|
10
|
+
import { ChevronRight as y, Ellipsis as b } from "lucide-react";
|
|
11
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
12
|
+
import { useRender as C } from "@base-ui/react/use-render";
|
|
12
13
|
//#region src/components/molecules/Breadcrumb/Breadcrumb.tsx
|
|
13
|
-
var
|
|
14
|
+
var w = {
|
|
14
15
|
nav: "Breadcrumb",
|
|
15
16
|
more: (e) => `Show ${e} more ${e === 1 ? "page" : "pages"}`
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
+
function T(e, t = 4) {
|
|
18
19
|
let n = Math.max(3, Math.floor(t)), r = e.length - 1, i = (e, t) => ({
|
|
19
20
|
kind: "item",
|
|
20
21
|
item: e,
|
|
@@ -31,158 +32,115 @@ function k(e, t = 4) {
|
|
|
31
32
|
...e.slice(e.length - a).map((t, n) => i(t, e.length - a + n))
|
|
32
33
|
];
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function E(e) {
|
|
35
36
|
return e.id ?? e.href ?? e.label;
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
function D(e) {
|
|
39
|
+
return /* @__PURE__ */ x("a", { href: e.href });
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function O(e) {
|
|
41
42
|
return e.href != null;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
44
|
+
function k({ item: e, renderLink: t }) {
|
|
45
|
+
return C({
|
|
45
46
|
render: t(e),
|
|
46
47
|
props: {
|
|
47
|
-
className:
|
|
48
|
+
className: s,
|
|
48
49
|
title: e.label,
|
|
49
50
|
children: e.label
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
-
return /* @__PURE__ */
|
|
54
|
+
function A({ separator: e }) {
|
|
55
|
+
return /* @__PURE__ */ x("li", {
|
|
55
56
|
role: "presentation",
|
|
56
57
|
"aria-hidden": "true",
|
|
57
|
-
className:
|
|
58
|
-
children: e === "slash" ? /* @__PURE__ */
|
|
59
|
-
className:
|
|
58
|
+
className: d,
|
|
59
|
+
children: e === "slash" ? /* @__PURE__ */ x("span", {
|
|
60
|
+
className: p,
|
|
60
61
|
children: "/"
|
|
61
|
-
}) : /* @__PURE__ */
|
|
62
|
+
}) : /* @__PURE__ */ x(t, {
|
|
62
63
|
size: "xs",
|
|
63
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ x(y, {})
|
|
64
65
|
})
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
function j({ items: e, label: t, renderLink: o }) {
|
|
69
|
+
let s = v(null), c = e.map((e) => ({
|
|
70
|
+
label: e.label,
|
|
71
|
+
disabled: !O(e)
|
|
72
|
+
})), u = a({
|
|
73
|
+
rows: c,
|
|
74
|
+
triggerRef: s,
|
|
75
|
+
focus: "items",
|
|
76
|
+
measure: () => s.current == null ? null : i(s.current, e.map((e) => ({ label: e.label })), {
|
|
71
77
|
align: "start",
|
|
72
78
|
widthMode: "content"
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
103
|
-
let t = D();
|
|
104
|
-
if (t.length === 0) return;
|
|
105
|
-
e.preventDefault();
|
|
106
|
-
let n = t.indexOf(document.activeElement), r = e.key === "ArrowDown" ? 1 : -1;
|
|
107
|
-
t[n === -1 ? r === 1 ? 0 : t.length - 1 : (n + r + t.length) % t.length]?.focus();
|
|
108
|
-
}
|
|
109
|
-
function k(e) {
|
|
110
|
-
if (!d) return;
|
|
111
|
-
let t = e.relatedTarget;
|
|
112
|
-
(t == null || !s.current?.contains(t)) && C(!1);
|
|
113
|
-
}
|
|
114
|
-
return /* @__PURE__ */ E("div", {
|
|
115
|
-
ref: s,
|
|
116
|
-
className: c,
|
|
117
|
-
onKeyDown: O,
|
|
118
|
-
onBlur: k,
|
|
119
|
-
children: [/* @__PURE__ */ T("div", {
|
|
120
|
-
ref: l,
|
|
121
|
-
className: "inline-flex",
|
|
122
|
-
children: /* @__PURE__ */ T(n, {
|
|
123
|
-
size: "sm",
|
|
124
|
-
icon: /* @__PURE__ */ T(w, {}),
|
|
125
|
-
"aria-label": t,
|
|
126
|
-
title: "",
|
|
127
|
-
"aria-expanded": d,
|
|
128
|
-
"aria-controls": d ? o : void 0,
|
|
129
|
-
onClick: () => {
|
|
130
|
-
d ? C(!1) : (h.current = !0, f(!0));
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
}), d && p != null ? /* @__PURE__ */ T("div", {
|
|
134
|
-
ref: u,
|
|
135
|
-
children: /* @__PURE__ */ T(r.Menu, {
|
|
136
|
-
id: o,
|
|
137
|
-
"aria-label": t,
|
|
138
|
-
style: p,
|
|
139
|
-
children: e.map((e) => /* @__PURE__ */ T("li", { children: M(e) ? /* @__PURE__ */ T(r.Item, {
|
|
140
|
-
truncate: !1,
|
|
141
|
-
render: a(e),
|
|
142
|
-
onClick: () => C(!1),
|
|
143
|
-
children: e.label
|
|
144
|
-
}) : /* @__PURE__ */ T(r.Item, {
|
|
145
|
-
truncate: !1,
|
|
146
|
-
disabled: !0,
|
|
147
|
-
children: e.label
|
|
148
|
-
}) }, A(e)))
|
|
149
|
-
})
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
return /* @__PURE__ */ S("div", {
|
|
82
|
+
...u.rootProps,
|
|
83
|
+
className: l,
|
|
84
|
+
children: [/* @__PURE__ */ x(n, {
|
|
85
|
+
ref: s,
|
|
86
|
+
size: "sm",
|
|
87
|
+
icon: /* @__PURE__ */ x(b, {}),
|
|
88
|
+
"aria-label": t,
|
|
89
|
+
title: "",
|
|
90
|
+
"aria-expanded": u.triggerProps["aria-expanded"],
|
|
91
|
+
"aria-controls": u.triggerProps["aria-controls"],
|
|
92
|
+
onClick: u.toggle
|
|
93
|
+
}), u.open && u.menuStyle != null ? /* @__PURE__ */ x(r.Menu, {
|
|
94
|
+
...u.menuProps,
|
|
95
|
+
"aria-label": t,
|
|
96
|
+
children: e.map((e, t) => /* @__PURE__ */ x("li", { children: O(e) ? /* @__PURE__ */ x(r.Item, {
|
|
97
|
+
...u.rowProps(t),
|
|
98
|
+
truncate: !1,
|
|
99
|
+
render: o(e),
|
|
100
|
+
onClick: () => u.close(),
|
|
101
|
+
children: e.label
|
|
102
|
+
}) : /* @__PURE__ */ x(r.Item, {
|
|
103
|
+
...u.rowProps(t),
|
|
104
|
+
truncate: !1,
|
|
105
|
+
disabled: !0,
|
|
106
|
+
children: e.label
|
|
107
|
+
}) }, E(e)))
|
|
150
108
|
}) : null]
|
|
151
109
|
});
|
|
152
110
|
}
|
|
153
|
-
function
|
|
111
|
+
function M({ items: t, maxItems: n = 4, separator: r = "chevron", variant: i = "sans", renderLink: a = D, labels: s, className: l }) {
|
|
154
112
|
let d = {
|
|
155
|
-
...
|
|
156
|
-
...
|
|
157
|
-
}, f =
|
|
158
|
-
return /* @__PURE__ */
|
|
113
|
+
...w,
|
|
114
|
+
...s
|
|
115
|
+
}, f = T(t, n);
|
|
116
|
+
return /* @__PURE__ */ x("nav", {
|
|
159
117
|
"aria-label": d.nav,
|
|
160
|
-
className:
|
|
118
|
+
className: l,
|
|
161
119
|
"data-variant": i,
|
|
162
|
-
children: /* @__PURE__ */
|
|
163
|
-
className: e(
|
|
164
|
-
children: f.map((e, t) => /* @__PURE__ */
|
|
165
|
-
className:
|
|
166
|
-
children: e.kind === "more" ? /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ x("ol", {
|
|
121
|
+
className: e(c, h[i]),
|
|
122
|
+
children: f.map((e, t) => /* @__PURE__ */ S(_, { children: [t > 0 ? /* @__PURE__ */ x(A, { separator: r }) : null, /* @__PURE__ */ x("li", {
|
|
123
|
+
className: o,
|
|
124
|
+
children: e.kind === "more" ? /* @__PURE__ */ x(j, {
|
|
167
125
|
items: e.items,
|
|
168
126
|
label: d.more(e.items.length),
|
|
169
|
-
renderLink:
|
|
170
|
-
}) : e.current ? /* @__PURE__ */
|
|
171
|
-
className:
|
|
127
|
+
renderLink: a
|
|
128
|
+
}) : e.current ? /* @__PURE__ */ x("span", {
|
|
129
|
+
className: u,
|
|
172
130
|
"aria-current": "page",
|
|
173
131
|
title: e.item.label,
|
|
174
132
|
children: e.item.label
|
|
175
|
-
}) :
|
|
133
|
+
}) : O(e.item) ? /* @__PURE__ */ x(k, {
|
|
176
134
|
item: e.item,
|
|
177
|
-
renderLink:
|
|
178
|
-
}) : /* @__PURE__ */
|
|
179
|
-
className:
|
|
135
|
+
renderLink: a
|
|
136
|
+
}) : /* @__PURE__ */ x("span", {
|
|
137
|
+
className: m,
|
|
180
138
|
title: e.item.label,
|
|
181
139
|
children: e.item.label
|
|
182
140
|
})
|
|
183
|
-
})] }, e.kind === "more" ? "more" :
|
|
141
|
+
})] }, e.kind === "more" ? "more" : E(e.item)))
|
|
184
142
|
})
|
|
185
143
|
});
|
|
186
144
|
}
|
|
187
145
|
//#endregion
|
|
188
|
-
export {
|
|
146
|
+
export { M as Breadcrumb, w as breadcrumbDefaultLabels, f as breadcrumbSeparators, T as breadcrumbSlots, g as breadcrumbVariants };
|
|
@@ -12,7 +12,7 @@ var n = ["flush", "rounded"], r = [
|
|
|
12
12
|
"lg"
|
|
13
13
|
], a = "flex w-full flex-col font-sans text-fg", o = "overflow-hidden", s = {
|
|
14
14
|
flush: "rounded-none",
|
|
15
|
-
rounded: "rounded-
|
|
15
|
+
rounded: "rounded-[var(--radius-surface-sm)]"
|
|
16
16
|
}, c = {
|
|
17
17
|
surface: "bg-surface",
|
|
18
18
|
outlined: "bg-card shadow-soft-card",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Quiet panel — surface fill, thin divider border, not a Card elevation. */
|
|
2
|
-
export declare const chatQaShellClasses = "flex w-full min-w-0 flex-col gap-4 rounded-
|
|
2
|
+
export declare const chatQaShellClasses = "flex w-full min-w-0 flex-col gap-4 rounded-[var(--radius-surface)] border border-border bg-surface px-5 py-4";
|
|
3
3
|
/** One question stacked over its answer. */
|
|
4
4
|
export declare const chatQaPairClasses = "flex min-w-0 flex-col gap-0.5";
|
|
5
5
|
/** Muted question line. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatQaStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ChatQa/chatQaStyles.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"chatQaStyles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/ChatQa/chatQaStyles.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,iHACiF,CAAC;AAEjH,4CAA4C;AAC5C,eAAO,MAAM,iBAAiB,kCAAkC,CAAC;AAEjE,2BAA2B;AAC3B,eAAO,MAAM,qBAAqB,yBAAyB,CAAC;AAE5D,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
//#region src/components/molecules/ChatQa/chatQaStyles.ts
|
|
3
|
-
var e = "flex w-full min-w-0 flex-col gap-4 rounded-
|
|
3
|
+
var e = "flex w-full min-w-0 flex-col gap-4 rounded-[var(--radius-surface)] border border-border bg-surface px-5 py-4", t = "flex min-w-0 flex-col gap-0.5", n = "type-body text-muted", r = "type-label text-fg";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { r as chatQaAnswerClasses, t as chatQaPairClasses, n as chatQaQuestionClasses, e as chatQaShellClasses };
|
|
@@ -6,7 +6,7 @@ var n = [
|
|
|
6
6
|
"sm",
|
|
7
7
|
"md",
|
|
8
8
|
"lg"
|
|
9
|
-
], r = "inline-flex shrink-0 items-center justify-center rounded-
|
|
9
|
+
], r = "inline-flex shrink-0 items-center justify-center rounded-[var(--radius-control)] font-sans font-medium tracking-normal transition-[background-color,box-shadow,color] " + t("fast"), i = {
|
|
10
10
|
sm: `${e.sm} gap-1 px-2.5 text-xs leading-none`,
|
|
11
11
|
md: `${e.md} gap-1.5 px-3 text-sm leading-none`,
|
|
12
12
|
lg: `${e.lg} gap-2 px-4 text-sm leading-none`
|
|
@@ -3,7 +3,7 @@ import { DropdownMenu, type DropdownMenuLayoutClassName, type DropdownMenuProps
|
|
|
3
3
|
/** Menu panel + three-slot rows — shared by Select and future action menus. */
|
|
4
4
|
export declare const Dropdown: {
|
|
5
5
|
Menu: typeof DropdownMenu;
|
|
6
|
-
Item:
|
|
6
|
+
Item: import("react").ForwardRefExoticComponent<DropdownItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
};
|
|
8
8
|
export { DropdownItem, DropdownMenu, type DropdownItemLayoutClassName, type DropdownItemProps, type DropdownMenuLayoutClassName, type DropdownMenuProps, };
|
|
9
9
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactElement, type ReactNode } from "react";
|
|
2
2
|
/** Layout-only — not for row colors or typography overrides. */
|
|
3
3
|
export type DropdownItemLayoutClassName = string;
|
|
4
4
|
export interface DropdownItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
@@ -24,5 +24,5 @@ export interface DropdownItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonE
|
|
|
24
24
|
/**
|
|
25
25
|
* Dropdown row — start | label | end. Used by **Select** listbox options and future menu patterns.
|
|
26
26
|
*/
|
|
27
|
-
export declare
|
|
27
|
+
export declare const DropdownItem: import("react").ForwardRefExoticComponent<DropdownItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
28
28
|
//# sourceMappingURL=DropdownItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Dropdown/DropdownItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DropdownItem.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/Dropdown/DropdownItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAc3G,gEAAgE;AAChE,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACjE,yBAAyB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,wEAAwE;IACxE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oFAAoF;IACpF,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uDAAuD;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,2BAA2B,CAAC;CACzC;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,iHAyDvB,CAAC"}
|