@storepass/components 0.12.0 → 0.13.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/CHANGELOG.md +23 -0
- package/dist/components/AlertDialog/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/ImperativeDialog/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Lightbox/index.js +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/PageHeading/PageHeading.d.ts +6 -1
- package/dist/components/PageHeading/PageHeading.d.ts.map +1 -1
- package/dist/components/PageHeading/index.js +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Settings/Settings.d.ts.map +1 -1
- package/dist/components/Settings/index.js +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Timeline/index.js +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/{index-8tj7zxwa.js → index-16mzkb0b.js} +1 -1
- package/dist/{index-sswgcxb4.js → index-1e7cstd2.js} +1 -1
- package/dist/{index-v0d4dp5m.js → index-5fec682d.js} +1 -1
- package/dist/index-87pd4g7m.js +2 -0
- package/dist/{index-7v4th5b3.js → index-97sy1eyb.js} +1 -1
- package/dist/{index-yad75gh5.js → index-bc6hgak4.js} +1 -1
- package/dist/index-ca7022da.js +1 -0
- package/dist/{index-dm4hxxz7.js → index-dth13047.js} +1 -1
- package/dist/{index-hce9z4py.js → index-ecbvqvp8.js} +1 -1
- package/dist/{index-sc6nwppj.js → index-fp2e0qx6.js} +2 -2
- package/dist/{index-59j1m424.js → index-g6sc2cv6.js} +1 -1
- package/dist/{index-9v3g23r1.js → index-n78k0ztj.js} +1 -1
- package/dist/{index-rqey8xyw.js → index-nr80mpwc.js} +1 -1
- package/dist/{index-gdxh42rh.js → index-nwwzg7n8.js} +1 -1
- package/dist/{index-8snw3y6n.js → index-q7k4n9d9.js} +1 -1
- package/dist/{index-e7jz2cgk.js → index-qcwdn5ht.js} +1 -1
- package/dist/{index-1ynppxbf.js → index-qyxhzzte.js} +1 -1
- package/dist/{index-yss2zh1y.js → index-s7h53rx8.js} +2 -2
- package/dist/index-t7227rxp.js +1 -0
- package/dist/{index-6r8b9409.js → index-vy31ye1e.js} +1 -1
- package/dist/{index-c6h79vjj.js → index-w4dtc633.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/theme.css +12 -0
- package/package.json +1 -1
- package/dist/index-aes3kp39.js +0 -1
- package/dist/index-nsnn9f22.js +0 -1
- package/dist/index-yxa7p7wv.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `--spacing-shell-row` (36px) and `--spacing-shell-gutter` (14px) theme tokens, so `h-shell-row`, `min-h-shell-row` and `pt-shell-gutter` exist. The sidebar's tenant control and every page's first row share this band: the shell pads both columns by the gutter (the sidebar adds the 1px the main Panel's border takes) and both rows are one shell row tall, so their centre lines agree. The band is one md control tall, so a standard Button fills it.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- PageHeading's first row is one shell row tall and centred. That row is the back link or breadcrumbs when there are any, otherwise the title with its icon, badge and inline navigation, and the actions sit beside it from 48rem of header width. Before, actions centred against the whole title block, so a title with a description pushed them below the title line. Under 48rem the actions still stack under the description.
|
|
12
|
+
- SettingsContainer's back-link row is one shell row tall (was `h-8`), so a SettingsBackButton sits on the same line.
|
|
13
|
+
- The app shell story mirrors the app's shell: the tenant control sits in the sidebar header and the page starts at the shell gutter. Its new "Heading alignment" story renders every PageHeading composition at every size, plus a settings back link, inside the shell. It fails if any first-row element's centre is more than 1px off the tenant control's centre, or if a standard Button is a different height from the tenant control.
|
|
14
|
+
|
|
15
|
+
### Compatibility notes
|
|
16
|
+
|
|
17
|
+
- No props changed. A page inside the app shell lines up only when the shell pads `<main>` with `pt-shell-gutter` and the sidebar header with the gutter plus 1px. Pages that set their own top padding (full-bleed pages) should use `pt-shell-gutter` as well.
|
|
18
|
+
- When the title leads, the description now starts below the 36px row instead of directly under the title's capitals, so a heading with a description is up to about 10px taller.
|
|
19
|
+
|
|
20
|
+
## 0.12.1
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Lightbox's Download links (the header action and the Download button on files the browser can't show) now open in a new tab. Browsers ignore `download` for files on another origin, so before, clicking Download on such a file replaced the current page with the file and lost anything unsaved on it, such as a reply being written. Same-origin files still download.
|
|
25
|
+
|
|
3
26
|
## 0.12.0
|
|
4
27
|
|
|
5
28
|
### Added
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gn,Hn,Wn,$n,Un,m}from"../../index-dth13047.js";import"../../index-6hjt8vvj.js";export{m as AlertDialog,Un as alertDialogActionsVariants,$n as alertDialogDescriptionVariants,Gn as alertDialogOverlayVariants,Hn as alertDialogPopupVariants,Wn as alertDialogTitleVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ao,
|
|
1
|
+
import{Ao,_,ie}from"../../index-16mzkb0b.js";import"../../index-6hjt8vvj.js";export{_ as Avatar,ie as AvatarGroup,Ao as avatarVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../index-wpk5v3xc.js";import{P,Be,ze,Ge,
|
|
1
|
+
import"../../index-wpk5v3xc.js";import{P,Be,ze,_e,Ge,He,_n}from"../../index-fp2e0qx6.js";import"../../index-99sw4wym.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{Be as Carousel,ze as CarouselContent,_n as CarouselDots,_e as CarouselItem,He as CarouselNext,Ge as CarouselPrevious,P as useCarousel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Yt,Zt,Le,Qt,Jt,qt,eo,to,oo,ro,ao,c}from"../../index-
|
|
1
|
+
import{Yt,Zt,Le,Qt,Jt,qt,eo,to,oo,ro,ao,c}from"../../index-97sy1eyb.js";import"../../index-q7k4n9d9.js";import"../../index-nwwzg7n8.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{c as Combobox,Le as comboboxButtonVariants,ao as comboboxChipRemoveVariants,ro as comboboxChipVariants,oo as comboboxChipsVariants,Qt as comboboxContentVariants,qt as comboboxEmptyVariants,to as comboboxGroupLabelVariants,Zt as comboboxInputGroupVariants,Yt as comboboxInputVariants,Jt as comboboxItemVariants,eo as comboboxStatusVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Gt,
|
|
1
|
+
import{_t,Gt,Ht,xe,Wt,$t,Ut,jt,Ta,ka,he,ye,ve,Pe,Ce,we,Ne,Re,Se,V,j,K,u,h,Kt,Ia,Da,O,Te,Va,ke,Oa}from"../../index-s7h53rx8.js";import"../../index-by6675v6.js";import"../../index-5k17f917.js";import"../../index-6zm0by24.js";import"../../index-vdb4kfwe.js";import{a}from"../../index-bdntmxp6.js";import"../../index-gjmxrp9t.js";import"../../index-asp78vex.js";import"../../index-97sy1eyb.js";import"../../index-q7k4n9d9.js";import"../../index-2sb8sfkr.js";import"../../index-qcwdn5ht.js";import"../../index-nwwzg7n8.js";import"../../index-2bx179yg.js";import"../../index-edjnhay3.js";import"../../index-626k16zr.js";import"../../index-99sw4wym.js";import"../../index-hjzka0tz.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-16mzkb0b.js";import"../../index-7mpwp5xv.js";import"../../index-6hjt8vvj.js";export{h as ACTIONS_COLUMN_WIDTH,Gt as AvatarCell,Ht as AvatarGroupCell,Ce as ColumnMenu,Se as DENSITY_ROW_PY,Oa as DataGrid,xe as EmptyCell,_t as EntityCell,ve as FilterButton,ye as FilterChips,Re as GridPagination,$t as MoneyCell,V as PAGE_SIZE_DEFAULT,j as PAGE_SIZE_MAX,K as ROWS_PAGE_SIZE_MAX,Ne as RowActionsMenu,u as SELECT_COLUMN_WIDTH,he as SearchField,Pe as SortMenu,Ut as SparklineCell,jt as StatusCell,Wt as TagsCell,we as ViewMenu,Te as applyGridQuery,Ta as column,ka as defineGrid,Kt as emptyGridQuery,a as formatCount,Ia as parseGridQuery,ke as resolveGridResult,Da as serializeGridQuery,Va as toGridRequest,O as transitionGridQuery};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{io,so,lo,Aa}from"../../index-
|
|
1
|
+
import{io,so,lo,Aa}from"../../index-nr80mpwc.js";import"../../index-qcwdn5ht.js";import"../../index-nwwzg7n8.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{Aa as DatePicker,lo as datePickerDayVariants,so as datePickerPopupVariants,io as datePickerTriggerVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,L,co,Ba,za,Ga,
|
|
1
|
+
import{d,L,co,Ba,za,_a,Ga,Ha,oe,Wa,re,$a,ae}from"../../index-nwwzg7n8.js";import"../../index-6hjt8vvj.js";export{Ba as Field,L as FieldContainerProvider,Ha as FieldContent,re as FieldDescription,ae as FieldError,Ga as FieldGroup,oe as FieldLabel,_a as FieldLegend,$a as FieldSeparator,za as FieldSet,Wa as FieldTitle,co as fieldVariants,d as useInFieldContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Tt,da}from"../../index-
|
|
1
|
+
import{Tt,da}from"../../index-vy31ye1e.js";import"../../index-qyxhzzte.js";import"../../index-yfdhvead.js";import"../../index-626k16zr.js";import"../../index-99sw4wym.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{da as FileUpload,Tt as fileUploadVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ga,ba,xa,ha,ya}from"../../index-
|
|
1
|
+
import{ga,ba,xa,ha,ya}from"../../index-5fec682d.js";import"../../index-nwwzg7n8.js";import"../../index-6hjt8vvj.js";export{ga as Form,ya as FormActions,ba as FormField,ha as FormRow,xa as FormSection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ca,be,wa,Na}from"../../index-
|
|
1
|
+
import{Ca,be,wa,Na}from"../../index-bc6hgak4.js";import"../../index-626k16zr.js";import"../../index-99sw4wym.js";import"../../index-dth13047.js";import"../../index-6hjt8vvj.js";export{Ca as ImperativeDialogProvider,wa as useAlert,Na as useConfirm,be as useImperativeDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M,Sn,y}from"../../index-
|
|
1
|
+
import{M,Sn,y}from"../../index-qcwdn5ht.js";import"../../index-nwwzg7n8.js";import"../../index-6hjt8vvj.js";export{y as Input,M as inputVariants,Sn as inputWrapperVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ia}from"../../index-
|
|
1
|
+
import{ia}from"../../index-ca7022da.js";import"../../index-1gzpzh5t.js";import"../../index-fp2e0qx6.js";import"../../index-99sw4wym.js";import"../../index-jj59rx1e.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{ia as Lightbox};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{vn,ct,ue,kr}from"../../index-
|
|
1
|
+
import{vn,ct,ue,kr}from"../../index-g6sc2cv6.js";import"../../index-nwwzg7n8.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{kr as NumberField,ue as numberFieldButtonVariants,vn as numberFieldGroupVariants,ct as numberFieldInputVariants};
|
|
@@ -44,7 +44,12 @@ export interface PageHeadingProps extends Omit<ComponentPropsWithoutRef<"header"
|
|
|
44
44
|
* scale, compact for dense lists, boards, and operational workspaces. It stays
|
|
45
45
|
* surface-free so it belongs to the page canvas instead of reading as a
|
|
46
46
|
* nested card. It measures its own width: breadcrumbs and inline navigation
|
|
47
|
-
* expand at 40rem; actions move beside the
|
|
47
|
+
* expand at 40rem; actions move beside the first row at 48rem. Long titles
|
|
48
|
+
* wrap.
|
|
49
|
+
*
|
|
50
|
+
* Its first row (the back link or breadcrumbs, else the title, with the
|
|
51
|
+
* actions) is one shell row tall and centred, so inside the app shell's
|
|
52
|
+
* gutter it shares the sidebar tenant control's centre line at every size.
|
|
48
53
|
*/
|
|
49
54
|
export declare function PageHeading({ title, size, icon, badge, description, breadcrumbs, back, navigation, navigationPlacement, actions, className, ...props }: PageHeadingProps): import("react").JSX.Element;
|
|
50
55
|
export { pageHeadingTitleVariants, pageHeadingVariants };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeading.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeading/PageHeading.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAU,KAAK,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAI5E,QAAA,MAAM,mBAAmB;;8EAiBxB,CAAC;AAMF,QAAA,MAAM,wBAAwB;;8EAc7B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,CACxC,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAChD,CAAC;AAEF,MAAM,WAAW,gBAChB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACtE,0BAA0B;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,gDAAgD;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wFAAwF;IAC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
-
import"../../index-6bayqdg2.js";import{Ir,Dr,me,fe,Pn,Cn}from"../../index-
|
|
1
|
+
import"../../index-6bayqdg2.js";import{Ir,Dr,me,fe,Pn,Cn}from"../../index-87pd4g7m.js";import"../../index-gjmxrp9t.js";import"../../index-99sw4wym.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{me as PageHeading,fe as PageHeadingBackLink,Pn as PageHeadingNav,Cn as PageHeadingNavLink,Dr as pageHeadingTitleVariants,Ir as pageHeadingVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gt,
|
|
1
|
+
import{gt,_r,bt,Gr,xt,Hr,ht,Wr}from"../../index-n78k0ztj.js";import"../../index-6hjt8vvj.js";export{_r as Panel,Hr as PanelBody,Wr as PanelFooter,Gr as PanelHeader,xt as panelBodyVariants,ht as panelFooterVariants,bt as panelHeaderVariants,gt as panelVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{kt,It,
|
|
1
|
+
import{kt,It,G}from"../../index-qyxhzzte.js";import"../../index-6hjt8vvj.js";export{G as Progress,It as progressIndicatorVariants,kt as progressTrackVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../index-6zm0by24.js";import{te,Ma,La,g}from"../../index-
|
|
1
|
+
import"../../index-6zm0by24.js";import{te,Ma,La,g}from"../../index-q7k4n9d9.js";import"../../index-nwwzg7n8.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{g as Select,La as selectItemVariants,Ma as selectPopupVariants,te as selectTriggerVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../../src/components/Settings/Settings.tsx"],"names":[],"mappings":"AAoDA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,E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.js";import"../../index-87pd4g7m.js";import"../../index-r43cvdya.js";import"../../index-gjmxrp9t.js";import"../../index-jjky9e4z.js";import"../../index-99sw4wym.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{dr as SettingsBackButton,lr as SettingsContainer,cr as SettingsHeader,fr as SettingsNav,gr as SettingsNavGroup,br as SettingsNavItem,ur as SettingsRow,pr as SettingsSection,mr as SettingsSeparator,it as settingsContainerVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$e,Ue}from"../../index-
|
|
1
|
+
import{$e,Ue}from"../../index-w4dtc633.js";import"../../index-nwwzg7n8.js";import"../../index-6hjt8vvj.js";export{Ue as Textarea,$e as textareaVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{zo,je,
|
|
1
|
+
import{zo,je,_o}from"../../index-ecbvqvp8.js";import"../../index-s3543vem.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{zo as Timeline,_o as TimelineItem,je as timelineNodeVariants};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ke,
|
|
1
|
+
import{Ke,Go,Ho,Wo}from"../../index-1e7cstd2.js";import"../../index-yfdhvead.js";import"../../index-yeehx7kc.js";import"../../index-6hjt8vvj.js";export{Go as ToastProvider,Ho as Toaster,Ke as toastVariants,Wo as useToast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{Avatar as s}from"@base-ui/react/avatar";import{cva as m}from"class-variance-authority";import{jsx as i,jsxs as b}from"react/jsx-runtime";var Ao=m("relative flex shrink-0 overflow-hidden rounded-full border border-secondary_alt bg-muted text-muted-foreground select-none",{variants:{size:{xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-sm",lg:"size-12 text-base",xl:"size-16 text-lg"}},defaultVariants:{size:"md"}}),l=["border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700","border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700","border-utility-success-200 bg-utility-success-50 text-utility-success-700","border-utility-warning-200 bg-utility-warning-50 text-utility-warning-700","border-utility-error-200 bg-utility-error-50 text-utility-error-700"];function f(a){let t=0;for(let r=0;r<a.length;r++)t=t*31+a.charCodeAt(r)|0;return l[Math.abs(t)%l.length]}function
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{Avatar as s}from"@base-ui/react/avatar";import{cva as m}from"class-variance-authority";import{jsx as i,jsxs as b}from"react/jsx-runtime";var Ao=m("relative flex shrink-0 overflow-hidden rounded-full border border-secondary_alt bg-muted text-muted-foreground select-none",{variants:{size:{xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-10 text-sm",lg:"size-12 text-base",xl:"size-16 text-lg"}},defaultVariants:{size:"md"}}),l=["border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700","border-utility-blue-200 bg-utility-blue-50 text-utility-blue-700","border-utility-success-200 bg-utility-success-50 text-utility-success-700","border-utility-warning-200 bg-utility-warning-50 text-utility-warning-700","border-utility-error-200 bg-utility-error-50 text-utility-error-700"];function f(a){let t=0;for(let r=0;r<a.length;r++)t=t*31+a.charCodeAt(r)|0;return l[Math.abs(t)%l.length]}function _({size:a,src:t,alt:r,fallback:o,colorHash:u,colored:c=!1,className:d,...p}){let n=u??(typeof o==="string"?o:void 0),v=c&&n?f(n):void 0;return b(s.Root,{"data-slot":"avatar",className:e(Ao({size:a}),v,d),...p,children:[i(s.Image,{"data-slot":"avatar-image",src:t,alt:r,className:"aspect-square size-full object-cover"}),i(s.Fallback,{"data-slot":"avatar-fallback",className:"flex size-full items-center justify-center font-medium",children:o})]})}function ie({className:a,...t}){return i("div",{"data-slot":"avatar-group",className:e("flex items-center -space-x-2 [&>[data-slot=avatar]]:ring-2 [&>[data-slot=avatar]]:ring-background",a),...t})}export{Ao,_,ie};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{R}from"./index-yfdhvead.js";import{Toast as a}from"@base-ui/react/toast";import{faCircleCheck as f,faCircleExclamation as u,faCircleInfo as p,faTriangleExclamation as m,faXmark as g}from"@fortawesome/pro-solid-svg-icons";import{cva as x}from"class-variance-authority";import{jsx as o,jsxs as l}from"react/jsx-runtime";var Ke=x(["relative flex items-start gap-3 rounded-xl border border-input bg-background p-4 text-foreground shadow-lg","transition-[translate,opacity] motion-reduce:transition-none","data-[starting-style]:translate-x-full data-[starting-style]:opacity-0","data-[ending-style]:translate-x-full data-[ending-style]:opacity-0","data-[swiping]:transition-none","data-[swipe-direction=right]:data-[ending-style]:translate-x-full","data-[swipe-direction=left]:data-[ending-style]:-translate-x-full","data-[swipe-direction=up]:data-[ending-style]:-translate-y-full","data-[swipe-direction=down]:data-[ending-style]:translate-y-full","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"],{variants:{variant:{default:"",success:"",error:"",warning:"",info:""}},defaultVariants:{variant:"default"}}),v={success:{icon:f,color:"success"},error:{icon:u,color:"error"},warning:{icon:m,color:"warning"},info:{icon:p,color:"info"}};function T(s){switch(s){case"success":case"error":case"warning":case"info":return s;default:return"default"}}function
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{R}from"./index-yfdhvead.js";import{Toast as a}from"@base-ui/react/toast";import{faCircleCheck as f,faCircleExclamation as u,faCircleInfo as p,faTriangleExclamation as m,faXmark as g}from"@fortawesome/pro-solid-svg-icons";import{cva as x}from"class-variance-authority";import{jsx as o,jsxs as l}from"react/jsx-runtime";var Ke=x(["relative flex items-start gap-3 rounded-xl border border-input bg-background p-4 text-foreground shadow-lg","transition-[translate,opacity] motion-reduce:transition-none","data-[starting-style]:translate-x-full data-[starting-style]:opacity-0","data-[ending-style]:translate-x-full data-[ending-style]:opacity-0","data-[swiping]:transition-none","data-[swipe-direction=right]:data-[ending-style]:translate-x-full","data-[swipe-direction=left]:data-[ending-style]:-translate-x-full","data-[swipe-direction=up]:data-[ending-style]:-translate-y-full","data-[swipe-direction=down]:data-[ending-style]:translate-y-full","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"],{variants:{variant:{default:"",success:"",error:"",warning:"",info:""}},defaultVariants:{variant:"default"}}),v={success:{icon:f,color:"success"},error:{icon:u,color:"error"},warning:{icon:m,color:"warning"},info:{icon:p,color:"info"}};function T(s){switch(s){case"success":case"error":case"warning":case"info":return s;default:return"default"}}function Go(s){return o(a.Provider,{...s})}function Ho({className:s,...c}){let{toasts:d}=a.useToastManager();return o(a.Portal,{children:o(a.Viewport,{"data-slot":"toast-viewport",className:e("fixed right-[max(1rem,env(safe-area-inset-right))] bottom-[max(1rem,env(safe-area-inset-bottom))] left-[max(1rem,env(safe-area-inset-left))] z-50 ml-auto flex max-w-sm flex-col gap-2 outline-none",s),...c,children:d.map((r)=>{let n=T(r.type),i=n==="default"?null:v[n];return l(a.Root,{toast:r,"data-slot":"toast",className:e(Ke({variant:n})),children:[i?o(R,{"data-slot":"toast-icon",icon:i.icon,color:i.color,variant:"light",size:"sm"}):null,l("div",{"data-slot":"toast-body",className:"flex min-w-0 flex-1 flex-col gap-1 pr-6",children:[o(a.Title,{"data-slot":"toast-title",className:"text-sm font-semibold text-foreground"}),o(a.Description,{"data-slot":"toast-description",className:"text-sm text-muted-foreground"}),r.actionProps?o(a.Action,{"data-slot":"toast-action",className:"mt-2 inline-flex h-8 w-fit items-center justify-center rounded-lg px-3 text-sm font-semibold text-primary transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"}):null]}),o(a.Close,{"data-slot":"toast-close","aria-label":"Dismiss",className:"absolute top-3 right-3 inline-flex size-6 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 [&_[data-slot=icon]]:size-4",children:o(t,{icon:g})})]},r.id)})})})}function Wo(){return a.useToastManager()}export{Ke,Go,Ho,Wo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{L,oe,re,ae}from"./index-
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{L,oe,re,ae}from"./index-nwwzg7n8.js";import{Form as R}from"@base-ui/react/form";import{jsx as P}from"react/jsx-runtime";function ga({className:t,...o}){return P(R,{"data-slot":"form",className:e("flex w-full flex-col gap-6 has-[>[data-slot=form-section]]:gap-10",t),...o})}import{Field as f}from"@base-ui/react/field";import{jsx as s,jsxs as a,Fragment as F}from"react/jsx-runtime";function ba({name:t,label:o,description:r,error:n,required:m,orientation:u="vertical",className:N,children:d,...g}){let l=o&&a(oe,{children:[o,m&&s("span",{className:"text-destructive",children:" *"})]}),c=r&&s(re,{children:r}),p=n?s(ae,{match:!0,className:"text-sm text-destructive",children:n}):s(f.Error,{"data-slot":"field-error",className:"text-sm text-destructive"});return s(f.Root,{name:t,"data-slot":"form-field",className:e("group/field flex w-full flex-col gap-1.5",N),...g,children:s(L,{children:u==="horizontal"?a(F,{children:[a("div",{className:"flex items-start gap-3",children:[d,(l||c)&&a("div",{className:"flex flex-1 flex-col gap-1 leading-snug",children:[l,c]})]}),p]}):a(F,{children:[l,d,c,p]})})})}import{cva as y}from"class-variance-authority";import{jsx as i,jsxs as x}from"react/jsx-runtime";function xa({title:t,description:o,className:r,children:n,...m}){return x("section",{"data-slot":"form-section",className:e("flex flex-col gap-8","[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-border [[data-slot=form-section]+&]:pt-10",r),...m,children:[x("div",{className:"flex flex-col gap-1",children:[i("h3",{className:"text-base font-semibold text-balance text-foreground",children:t}),o&&i("p",{className:"max-w-2xl text-sm text-muted-foreground",children:o})]}),i("div",{className:"flex flex-col gap-6",children:n})]})}var v={2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4"};function ha({columns:t=2,className:o,...r}){return i("div",{"data-slot":"form-row",className:e("grid grid-cols-1 gap-6",v[t],o),...r})}var h=y("flex items-center gap-3",{variants:{justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"}},defaultVariants:{justify:"end"}});function ya({justify:t,className:o,...r}){return i("div",{"data-slot":"form-actions",className:e(h({justify:t}),"[[data-slot=form-section]+&]:border-t [[data-slot=form-section]+&]:border-border [[data-slot=form-section]+&]:pt-6",o),...r})}export{ga,ba,xa,ha,ya};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{p,o}from"./index-99sw4wym.js";import{t}from"./index-yeehx7kc.js";import{J,q}from"./index-gjmxrp9t.js";import{useRender as b}from"@base-ui/react/use-render";import{faChevronLeft as k}from"@fortawesome/pro-solid-svg-icons";import{cva as w}from"class-variance-authority";import{jsx as n,jsxs as m,Fragment as H}from"react/jsx-runtime";var Ir=w("@container/page-heading grid w-full min-w-0 grid-cols-[minmax(0,1fr)]",{variants:{size:{display:"gap-x-4 gap-y-4",default:"gap-x-4 gap-y-3",compact:"gap-x-3 gap-y-2.5"}},defaultVariants:{size:"default"}}),Dr=w("min-w-0 font-semibold text-balance text-foreground [margin-block:calc((1lh-1cap)/-2)] [overflow-wrap:anywhere]",{variants:{size:{display:"text-display-md",default:"text-display-xs",compact:"text-display-2xs"}},defaultVariants:{size:"default"}});function me({title:d,size:a="default",icon:l,badge:u,description:g,breadcrumbs:i,back:c,navigation:f,navigationPlacement:v="inline",actions:r,className:h,...N}){let s=!c&&!i,x=m("div",{"data-slot":"page-heading-title-row",className:e("flex min-w-0 flex-wrap items-center",a==="compact"?"gap-x-4 gap-y-2":"gap-x-6 gap-y-3",s&&"min-h-shell-row"),children:[m("div",{className:e("flex min-w-0 flex-wrap items-center gap-y-2",a==="compact"&&"gap-2",a==="default"&&"gap-2.5",a==="display"&&"gap-3"),children:[l&&n("span",{"data-slot":"page-heading-icon",className:e("flex shrink-0 items-center justify-center text-tertiary",a==="compact"&&"size-5 [&_[data-slot=icon]]:text-base",a==="default"&&"size-6 [&_[data-slot=icon]]:text-lg",a==="display"&&"size-8 [&_[data-slot=icon]]:text-2xl"),children:l}),n("h1",{className:Dr({size:a}),children:d}),u&&n("span",{"data-slot":"page-heading-badge",className:"flex shrink-0 items-center",children:u})]}),f&&v==="inline"&&n("div",{"data-slot":"page-heading-navigation",className:e("order-last flex w-full min-w-0 items-center @min-[40rem]/page-heading:order-none @min-[40rem]/page-heading:w-auto @min-[40rem]/page-heading:border-l @min-[40rem]/page-heading:border-border",a==="compact"?"@min-[40rem]/page-heading:pl-4":"@min-[40rem]/page-heading:pl-6"),children:f})]});return m("header",{"data-slot":"page-heading","data-size":a,className:e(Ir({size:a}),r&&"@min-[48rem]/page-heading:grid-cols-[minmax(0,1fr)_auto]",h),...N,children:[s?x:m("div",{"data-slot":"page-heading-up",className:"flex min-h-shell-row min-w-0 items-center",children:[c&&n("div",{"data-slot":"page-heading-back",className:e(i&&"@min-[40rem]/page-heading:hidden"),children:c}),i&&n("div",{"data-slot":"page-heading-breadcrumbs",className:e(c&&"hidden @min-[40rem]/page-heading:block"),children:i})]}),r&&n("div",{"data-slot":"page-heading-actions",className:e("order-last flex min-h-shell-row min-w-0 max-w-full flex-wrap items-center @min-[48rem]/page-heading:order-none @min-[48rem]/page-heading:col-start-2 @min-[48rem]/page-heading:row-start-1",a==="compact"?"gap-1":"gap-2"),children:r}),(!s||g)&&m("div",{className:e("col-span-full flex min-w-0 flex-col",a==="compact"&&"gap-1",a==="default"&&"gap-3",a==="display"&&"gap-2"),children:[!s&&x,g&&n("p",{className:e("max-w-2xl text-tertiary",a==="display"?"text-md":"text-sm"),children:g})]}),f&&v==="below"&&n("div",{"data-slot":"page-heading-navigation",className:"order-last col-span-full min-w-0",children:f})]})}function fe({href:d,render:a,className:l,children:u,...g}){let{disabled:i=!1,focusableWhenDisabled:c,nativeButton:f,ref:v,style:r,...h}=g,N=m(H,{children:[n(t,{icon:k}),u]}),s=e(p({variant:"ghost",size:"sm"}),"-ml-2.5 w-fit text-secondary",l),x=d!==void 0||a!==void 0,P=b({enabled:x,defaultTagName:"a",render:a,ref:v,state:{disabled:i},props:{...h,href:i?void 0:d,"aria-disabled":i||void 0,"data-slot":"page-heading-back-link",tabIndex:i?-1:h.tabIndex,onClick:i?(y)=>y.preventDefault():h.onClick,className:s,style:typeof r==="function"?r({disabled:i}):r,children:N}});if(x)return P;return n(o,{variant:"ghost",size:"sm",className:s,...g,children:N})}function Pn({className:d,...a}){return n("nav",{"data-slot":"page-heading-nav",className:e(J({variant:"soft"}),"max-w-full overflow-x-auto",d),...a})}function Cn({current:d,className:a,...l}){return n("a",{"data-slot":"page-heading-nav-link","data-active":d?"":void 0,"aria-current":d?"page":void 0,className:e(q({variant:"soft"}),"shrink-0",a),...l})}
|
|
2
|
+
export{Ir,Dr,me,fe,Pn,Cn};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{te}from"./index-
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{te}from"./index-q7k4n9d9.js";import{s,E,A}from"./index-c59g8a08.js";import{Combobox as b}from"@base-ui/react/combobox";import{faCheck as I,faChevronDown as l,faXmark as C}from"@fortawesome/pro-solid-svg-icons";import{cva as i}from"class-variance-authority";import{createContext as f,useContext as x,useMemo as y,useState as V}from"react";import{jsx as r,jsxs as g}from"react/jsx-runtime";var u=f(null),d=f(null),Yt=i(["w-full min-w-0 rounded-lg border border-input bg-background text-foreground shadow-xs","placeholder:text-muted-foreground","transition-[color,box-shadow] outline-none","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],{variants:{size:A},defaultVariants:{size:"md"}}),Zt=i(["relative flex w-full items-center gap-0.5 rounded-lg border border-input bg-background py-0.5 pr-0.5 pl-1.5 shadow-xs","transition-[color,box-shadow]","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],{variants:{size:E},defaultVariants:{size:"md"}}),B=i([`h-full w-full min-w-0 flex-1 bg-transparent pl-1.5 ${s} text-foreground outline-none`,"placeholder:text-muted-foreground"]),R=i([`h-6 min-w-16 flex-1 bg-transparent px-1.5 ${s} text-foreground outline-none`,"placeholder:text-muted-foreground"]),Le=i(["flex aspect-square h-full shrink-0 cursor-default items-center justify-center rounded-md bg-transparent text-muted-foreground/60","outline-none transition-colors","hover:bg-muted hover:text-muted-foreground","focus-visible:ring-2 focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"]),Qt=i(["bg-background text-foreground","z-50 w-[var(--anchor-width)] max-w-[var(--available-width)] max-h-[min(var(--available-height),23rem)]","overflow-y-auto overscroll-contain scroll-py-1.5","rounded-xl border border-border p-1.5 shadow-lg","origin-[var(--transform-origin)] outline-none","transition-[transform,scale,opacity] motion-reduce:transition-none","data-[starting-style]:opacity-0 data-[starting-style]:scale-95","data-[ending-style]:opacity-0 data-[ending-style]:scale-95"]),Jt=i(["relative flex w-full cursor-default items-center gap-2 rounded-md py-1.5 pr-8 pl-2 text-sm outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","[&_svg:not([class*='text-'])]:text-muted-foreground"]),qt=i(["px-2 py-4 text-center text-sm text-muted-foreground empty:p-0"]),eo=i(["px-2 py-1.5 text-xs text-muted-foreground empty:p-0"]),to=i(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),oo=i(["flex min-h-9 w-full flex-wrap items-center gap-1 rounded-lg border border-input bg-background px-1.5 py-1 shadow-xs","transition-[color,box-shadow]","focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"]),ro=i(["flex h-6 cursor-default items-center gap-0.5 rounded-md bg-muted pr-0.5 pl-2 text-xs font-medium text-foreground outline-none","focus-within:bg-primary focus-within:text-primary-foreground"]),ao=i(["flex size-5 shrink-0 cursor-default items-center justify-center rounded-sm text-inherit opacity-60","outline-none transition-opacity hover:opacity-100"]);function w(o){let[a,n]=V(null),m=y(()=>({anchor:a,setAnchor:n}),[a]);return r(d.Provider,{value:m,children:r(b.Root,{...o})})}function G({className:o,children:a,...n}){return r(b.Label,{"data-slot":"combobox-label",className:e("text-sm font-medium text-foreground",o),...n,children:a})}function L({className:o,size:a,...n}){let m=x(u);if(m==="group")return r(b.Input,{"data-slot":"combobox-input",className:e(B(),o),...n});if(m==="chips")return r(b.Input,{"data-slot":"combobox-input",className:e(R(),o),...n});return r(b.Input,{"data-slot":"combobox-input",className:e(Yt({size:a}),o),...n})}function O({className:o,children:a,size:n,...m}){return r(u.Provider,{value:"group",children:r(b.InputGroup,{"data-slot":"combobox-input-group",className:e(Zt({size:n}),o),...m,children:a})})}function T({className:o,children:a,variant:n,size:m,...p}){if(n==="ghost")return g(b.Trigger,{"data-slot":"combobox-trigger","data-variant":"ghost",className:e(te({size:m,variant:"ghost"}),o),...p,children:[r("span",{className:"flex min-w-0 items-center gap-2 truncate",children:a}),r("span",{"data-slot":"select-icon",className:"flex opacity-50 transition-opacity",children:r(t,{icon:l})})]});return r(b.Trigger,{"data-slot":"combobox-trigger","aria-label":a?void 0:"Open popup",className:e(a?void 0:Le(),o),...p,children:a??r(t,{icon:l,className:"size-3.5"})})}function z({className:o,children:a,...n}){return r(b.Clear,{"data-slot":"combobox-clear","aria-label":"Clear selection",className:e(Le(),o),...n,children:a??r(t,{icon:C,className:"size-3.5"})})}function S(o){return r(b.Value,{"data-slot":"combobox-value",...o})}function k({className:o,children:a,...n}){return r(b.Icon,{"data-slot":"combobox-icon",className:e("flex shrink-0 text-muted-foreground/60",o),...n,children:a??r(t,{icon:l,className:"size-3.5"})})}function _({className:o,children:a,side:n="bottom",align:m="start",sideOffset:p=4,alignOffset:h,anchor:P,...N}){let v=x(d);return r(b.Portal,{children:r(b.Positioner,{className:"z-50 outline-none",side:n,align:m,sideOffset:p,alignOffset:h,anchor:P??v?.anchor??void 0,children:r(b.Popup,{"data-slot":"combobox-content",className:e(Qt(),o),...N,children:a})})})}function M({className:o,...a}){return r(b.List,{"data-slot":"combobox-list",className:e("outline-none",o),...a})}function H({className:o,children:a,...n}){return g(b.Item,{"data-slot":"combobox-item",className:e(Jt(),o),...n,children:[r("span",{"data-slot":"combobox-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:r(b.ItemIndicator,{children:r(t,{icon:I,className:"size-4 text-primary"})})}),a]})}function X({className:o,children:a,...n}){return r(b.Empty,{"data-slot":"combobox-empty",className:e(qt(),o),...n,children:a})}function j({className:o,children:a,...n}){return r(b.Status,{"data-slot":"combobox-status",className:e(eo(),o),...n,children:a})}function U({className:o,children:a,...n}){return r(b.Group,{"data-slot":"combobox-group",className:e(o),...n,children:a})}function q({className:o,children:a,...n}){return r(b.GroupLabel,{"data-slot":"combobox-group-label",className:e(to(),o),...n,children:a})}function D(o){return r(b.Collection,{...o})}function Z({className:o,children:a,...n}){let m=x(d);return r(u.Provider,{value:"chips",children:r(b.Chips,{ref:m?.setAnchor,"data-slot":"combobox-chips",className:e(oo(),o),...n,children:a})})}function F({className:o,children:a,...n}){return r(b.Chip,{"data-slot":"combobox-chip",className:e(ro(),o),...n,children:a})}function J({className:o,children:a,...n}){return r(b.ChipRemove,{"data-slot":"combobox-chip-remove","aria-label":"Remove",className:e(ao(),o),...n,children:a??r(t,{icon:C,className:"size-3"})})}var c={Root:w,Label:G,Input:L,InputGroup:O,Trigger:T,Clear:z,Value:S,Icon:k,Content:_,List:M,Item:H,Empty:X,Status:j,Group:U,GroupLabel:q,Collection:D,Chips:Z,Chip:F,ChipRemove:J};export{Yt,Zt,Le,Qt,Jt,qt,eo,to,oo,ro,ao,c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m}from"./index-
|
|
1
|
+
import{m}from"./index-dth13047.js";import{o}from"./index-99sw4wym.js";import{createContext as I,useCallback as u,useContext as x,useRef as b,useState as D}from"react";import{jsx as i,jsxs as l,Fragment as y}from"react/jsx-runtime";var C=I(null);function Ca({children:t}){let[a,f]=D(null),[P,s]=D(!1),g=b(null),O=u((e)=>{let c=typeof e==="string"?{title:e}:e;return new Promise((n)=>{g.current=()=>n(),f({type:"alert",options:c,resolve:()=>n()}),s(!0)})},[]),A=u((e)=>{let c=typeof e==="string"?{title:e}:e;return new Promise((n)=>{g.current=n,f({type:"confirm",options:c,resolve:n}),s(!0)})},[]),p=u((e)=>{a?.resolve(e),s(!1)},[a]),v=a?.type==="confirm",r=a?.options,d=r;return l(C.Provider,{value:{alert:O,confirm:A},children:[t,i(m.Root,{open:P,onOpenChange:(e)=>{if(!e)p(!1)},children:l(m.Portal,{children:[i(m.Backdrop,{}),i(m.Popup,{children:r&&l(y,{children:[i(m.Title,{children:r.title}),r.description&&i(m.Description,{children:r.description}),l(m.Actions,{children:[v&&i(o,{variant:"ghost",onClick:()=>p(!1),children:d?.cancelLabel??"Cancel"}),i(o,{variant:v?d?.variant??"primary":"primary",onClick:()=>p(!0),children:r.confirmLabel??"OK"})]})]})})]})})]})}function be(){let t=x(C);if(!t)throw Error("useImperativeDialog must be used within an ImperativeDialogProvider");return t}function wa(){let{alert:t}=be();return t}function Na(){let{confirm:t}=be();return t}export{Ca,be,wa,Na};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S,z,D}from"./index-jj59rx1e.js";import{e}from"./index-6hjt8vvj.js";import{p}from"./index-99sw4wym.js";import{t}from"./index-yeehx7kc.js";import{P,Be,ze,_e,Ge,He}from"./index-fp2e0qx6.js";import{St,w}from"./index-1gzpzh5t.js";import{faArrowUpRightFromSquare as L,faDownload as y}from"@fortawesome/pro-solid-svg-icons";import*as l from"react";import{jsx as a,jsxs as c,Fragment as N}from"react/jsx-runtime";var b=e(St(),"static size-9 rounded-lg bg-white/10 hover:bg-white/15 [&_[data-slot=icon]]:text-sm"),v="size-10 border-0 bg-white/10 text-white/80 shadow-none hover:bg-white/15 hover:text-white focus-visible:ring-white/40 [&_[data-slot=icon]]:text-sm";function ia({items:r,index:n,defaultIndex:f=0,onIndexChange:m,"aria-label":u="Attachments",children:i,...d}){let[o,s]=l.useState(f),x=Math.max(r.length-1,0),h=Math.min(Math.max(n??o,0),x),C=l.useCallback((g)=>{if(n===void 0)s(g);m?.(g)},[n,m]);return c(w.Root,{...d,children:[i,c(w.Portal,{children:[a(w.Backdrop,{className:"bg-black/95"}),a(w.Popup,{"data-slot":"lightbox","aria-label":u,className:"inset-0 size-full max-w-none translate-x-0 translate-y-0",children:a(Be,{className:"flex size-full flex-col",children:a(R,{items:r,index:h,onIndexChange:C})})})]})]})}function R({items:r,index:n,onIndexChange:f}){let{viewportRef:m}=P(),u=l.useRef(-1),i=r[n],d=r.length>1;if(l.useEffect(()=>{let o=m.current;if(!o)return;let s=()=>{let x=o.clientWidth;if(x===0)return;let h=Math.round(o.scrollLeft/x);if(h!==u.current)u.current=h,f(h)};return o.addEventListener("scroll",s,{passive:!0}),()=>o.removeEventListener("scroll",s)},[m,f]),l.useLayoutEffect(()=>{let o=m.current;if(!o||n===u.current)return;let s=u.current===-1?"instant":"smooth";u.current=n,o.scrollTo({left:n*o.clientWidth,behavior:s})},[n,m]),!i)return null;return c(N,{children:[c("header",{"data-slot":"lightbox-header",className:"flex h-16 shrink-0 items-center gap-3 px-4 text-sm",children:[c("div",{className:"flex min-w-0 flex-1 items-baseline gap-3",children:[a("span",{className:"truncate font-medium text-white",children:i.name}),d&&c("span",{"data-slot":"lightbox-counter",className:"shrink-0 tabular-nums text-white/50",children:[n+1," / ",r.length]}),i.meta&&a("span",{className:"truncate text-white/50",children:i.meta})]}),a("a",{href:i.downloadHref??i.src,download:i.name,target:"_blank",rel:"noopener noreferrer","aria-label":"Download",className:b,children:a(t,{icon:y})}),a("a",{href:i.src,target:"_blank",rel:"noopener noreferrer","aria-label":"Open in new tab",className:b,children:a(t,{icon:L})}),a(w.Close,{"aria-label":"Close",className:b})]}),a(ze,{className:"min-h-0 flex-1",children:r.map((o,s)=>a(_e,{"aria-label":`${s+1} of ${r.length}`,"aria-hidden":s!==n,className:"flex items-center justify-center px-16 py-2",children:z(o.src)||z(o.name)?a("img",{src:o.src,alt:o.name,className:"max-h-full max-w-full rounded-lg object-contain shadow-xl"}):a(k,{item:o})},o.src))}),d&&c(N,{children:[a(Ge,{variant:"ghost","aria-label":"Previous",className:e(v,"left-4")}),a(He,{variant:"ghost","aria-label":"Next",className:e(v,"right-4")}),a("div",{"data-slot":"lightbox-thumbnails",className:"flex h-20 shrink-0 items-center justify-center gap-2",children:r.map((o,s)=>a("button",{type:"button","aria-label":o.name,"aria-current":s===n?"true":void 0,onClick:()=>f(s),className:e("flex h-10 w-14 cursor-pointer items-center justify-center overflow-hidden rounded-md bg-white/10 text-white/60 opacity-50 transition-opacity hover:opacity-80","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-white/40","aria-[current]:opacity-100 aria-[current]:ring-2 aria-[current]:ring-white"),children:z(o.src)||z(o.name)?a("img",{src:o.src,alt:"",className:"size-full object-cover object-top"}):a(t,{icon:D(o.name),className:"text-base"})},o.src))})]})]})}function k({item:r}){let n=[S(r.name).toUpperCase(),r.fileSize].filter(Boolean).join(" · ");return c("div",{"data-slot":"lightbox-file",className:"flex min-w-0 flex-col items-center gap-3 text-center",children:[a("span",{className:"flex size-16 items-center justify-center rounded-2xl bg-white/10 text-white/70",children:a(t,{icon:D(r.name),className:"text-2xl"})}),a("span",{className:"max-w-full truncate text-sm font-medium text-white",children:r.name}),n&&a("span",{className:"font-mono text-xs text-white/50",children:n}),c("a",{href:r.downloadHref??r.src,download:r.name,target:"_blank",rel:"noopener noreferrer",className:e(p({variant:"secondary",size:"sm"}),"mt-1"),children:[a(t,{icon:y}),"Download"]})]})}export{ia};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{AlertDialog as l}from"@base-ui/react/alert-dialog";import{cva as s}from"class-variance-authority";import{jsx as r}from"react/jsx-runtime";var
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{AlertDialog as l}from"@base-ui/react/alert-dialog";import{cva as s}from"class-variance-authority";import{jsx as r}from"react/jsx-runtime";var Gn=s(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","data-[starting-style]:opacity-0 data-[ending-style]:opacity-0","transition-opacity duration-150"]),Hn=s(["fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-md rounded-xl border border-border bg-background p-6 shadow-xl","data-[starting-style]:scale-95 data-[starting-style]:opacity-0","data-[ending-style]:scale-95 data-[ending-style]:opacity-0","transition-[scale,opacity] duration-150 motion-reduce:transition-none","focus:outline-none"],{variants:{size:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg rounded-2xl"}},defaultVariants:{size:"md"}}),Wn=s("text-lg font-semibold text-balance text-foreground"),$n=s("mt-2 text-sm text-muted-foreground"),Un=s("mt-6 flex justify-end gap-3");function n({children:a,...t}){return r(l.Root,{...t,children:a})}function p({className:a,children:t,asChild:o,...i}){return r(l.Trigger,{className:e(a),render:o?t:void 0,...i,children:o?void 0:t})}function c({children:a,...t}){return r(l.Portal,{...t,children:a})}function g({className:a,...t}){return r(l.Backdrop,{className:e(Gn(),a),...t})}function d({size:a,className:t,children:o,...i}){return r(l.Popup,{"data-slot":"alert-dialog-popup",className:e(Hn({size:a}),t),...i,children:o})}function D({className:a,children:t,...o}){return r(l.Title,{"data-slot":"alert-dialog-title",className:e(Wn(),a),...o,children:t})}function A({className:a,children:t,...o}){return r(l.Description,{"data-slot":"alert-dialog-description",className:e($n(),a),...o,children:t})}function u({className:a,children:t,asChild:o,...i}){return r(l.Close,{className:e(a),render:o?t:void 0,...i,children:o?void 0:t})}function P({className:a,children:t,...o}){return r("div",{"data-slot":"alert-dialog-actions",className:e(Un(),a),...o,children:t})}var m={Root:n,Trigger:p,Portal:c,Backdrop:g,Popup:d,Title:D,Description:A,Close:u,Actions:P};export{Gn,Hn,Wn,$n,Un,m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{cva as u}from"class-variance-authority";import{jsx as i,jsxs as l}from"react/jsx-runtime";function zo({className:a,...n}){return i("ol",{"data-slot":"timeline",className:e("flex w-full flex-col",a),...n})}var je=u("relative z-10 flex size-5 shrink-0 items-center justify-center rounded-full [&_[data-slot=icon]]:text-[0.625rem]",{variants:{tone:{neutral:"bg-ink-well text-tertiary",brand:"bg-utility-brand-50 text-utility-brand-600",success:"bg-utility-success-50 text-utility-success-600",warning:"bg-utility-warning-50 text-utility-warning-600",error:"bg-utility-error-50 text-utility-error-600",info:"bg-utility-blue-50 text-utility-blue-600"}},defaultVariants:{tone:"neutral"}});function
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{cva as u}from"class-variance-authority";import{jsx as i,jsxs as l}from"react/jsx-runtime";function zo({className:a,...n}){return i("ol",{"data-slot":"timeline",className:e("flex w-full flex-col",a),...n})}var je=u("relative z-10 flex size-5 shrink-0 items-center justify-center rounded-full [&_[data-slot=icon]]:text-[0.625rem]",{variants:{tone:{neutral:"bg-ink-well text-tertiary",brand:"bg-utility-brand-50 text-utility-brand-600",success:"bg-utility-success-50 text-utility-success-600",warning:"bg-utility-warning-50 text-utility-warning-600",error:"bg-utility-error-50 text-utility-error-600",info:"bg-utility-blue-50 text-utility-blue-600"}},defaultVariants:{tone:"neutral"}});function _o({tone:a,icon:n,node:s,title:d,badge:o,description:r,time:m,children:c,className:p,...f}){return l("li",{"data-slot":"timeline-item","data-tone":a??"neutral",className:e("group/timeline-item relative flex gap-3 pb-5 text-sm last:pb-0",p),...f,children:[i("span",{"aria-hidden":!0,"data-slot":"timeline-connector",className:"absolute top-5 bottom-0 left-2.5 w-px -translate-x-1/2 bg-border-secondary group-last/timeline-item:hidden"}),i("span",{"aria-hidden":!0,"data-slot":"timeline-node",className:s?"relative z-10 flex size-5 shrink-0 items-center justify-center [&>[data-slot=avatar]]:size-5 [&>[data-slot=avatar]]:text-[0.5625rem]":je({tone:a}),children:s??(n?i(t,{icon:n}):i("span",{className:"size-1.5 rounded-full bg-current"}))}),l("div",{className:"flex min-w-0 flex-1 flex-col",children:[l("div",{className:"flex gap-3",children:[l("div",{"data-slot":"timeline-content",className:"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 leading-5",children:[i("span",{className:"font-medium text-foreground",children:d}),o&&i("span",{"data-slot":"timeline-badge",className:"flex self-center",children:o}),r&&i("span",{className:"text-tertiary",children:r})]}),m&&i("div",{"data-slot":"timeline-time",className:"shrink-0 leading-5 text-tertiary tabular-nums",children:m})]}),c&&i("div",{"data-slot":"timeline-body",className:"mt-1.5 min-w-0 text-foreground",children:c})]})]})}export{zo,je,_o};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{o}from"./index-99sw4wym.js";import{t}from"./index-yeehx7kc.js";import{faChevronLeft as E,faChevronRight as H}from"@fortawesome/pro-solid-svg-icons";import*as l from"react";import{jsx as m}from"react/jsx-runtime";var z=l.createContext(null);function P(){let r=l.useContext(z);if(!r)throw Error("useCarousel must be used within a <Carousel>");return r}function Be({orientation:r="horizontal",className:f,children:d,onKeyDown:u,...C}){let v=l.useRef(null),[h,x]=l.useState(!1),[c,s]=l.useState(!1),p=l.useCallback(()=>{let n=v.current;if(!n)return;if(r==="horizontal"){let{scrollLeft:a,scrollWidth:R,clientWidth:b}=n;x(a>1),s(a<R-b-1)}else{let{scrollTop:a,scrollHeight:R,clientHeight:b}=n;x(a>1),s(a<R-b-1)}},[r]),i=l.useCallback((n)=>{let a=v.current;if(!a)return;let R=a.firstElementChild;if(r==="horizontal"){let b=R?.offsetWidth??a.clientWidth;a.scrollBy({left:b*n})}else{let b=R?.offsetHeight??a.clientHeight;a.scrollBy({top:b*n})}},[r]),w=l.useCallback(()=>i(-1),[i]),y=l.useCallback(()=>i(1),[i]);l.useEffect(()=>{let n=v.current;if(!n)return;p(),n.addEventListener("scroll",p,{passive:!0});let a=new ResizeObserver(p);return a.observe(n),()=>{n.removeEventListener("scroll",p),a.disconnect()}},[p]);let N=l.useCallback((n)=>{if(u?.(n),n.defaultPrevented)return;let a=r==="horizontal"?"ArrowLeft":"ArrowUp",R=r==="horizontal"?"ArrowRight":"ArrowDown";if(n.key===a)n.preventDefault(),w();else if(n.key===R)n.preventDefault(),y()},[u,r,w,y]),g=l.useMemo(()=>({viewportRef:v,orientation:r,canScrollPrev:h,canScrollNext:c,scrollPrev:w,scrollNext:y}),[r,h,c,w,y]);return m(z.Provider,{value:g,children:m("div",{"data-slot":"carousel",role:"region","aria-roledescription":"carousel",className:e("relative",f),onKeyDown:N,...C,children:d})})}function ze({className:r,...f}){let{viewportRef:d,orientation:u}=P();return m("div",{ref:d,"data-slot":"carousel-content",className:e("flex scroll-smooth motion-reduce:scroll-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",u==="horizontal"?"-ml-4 snap-x snap-mandatory overflow-x-auto":"-mt-4 flex-col snap-y snap-mandatory overflow-y-auto",r),...f})}function
|
|
2
|
-
export{P,Be,ze,Ge,
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{o}from"./index-99sw4wym.js";import{t}from"./index-yeehx7kc.js";import{faChevronLeft as E,faChevronRight as H}from"@fortawesome/pro-solid-svg-icons";import*as l from"react";import{jsx as m}from"react/jsx-runtime";var z=l.createContext(null);function P(){let r=l.useContext(z);if(!r)throw Error("useCarousel must be used within a <Carousel>");return r}function Be({orientation:r="horizontal",className:f,children:d,onKeyDown:u,...C}){let v=l.useRef(null),[h,x]=l.useState(!1),[c,s]=l.useState(!1),p=l.useCallback(()=>{let n=v.current;if(!n)return;if(r==="horizontal"){let{scrollLeft:a,scrollWidth:R,clientWidth:b}=n;x(a>1),s(a<R-b-1)}else{let{scrollTop:a,scrollHeight:R,clientHeight:b}=n;x(a>1),s(a<R-b-1)}},[r]),i=l.useCallback((n)=>{let a=v.current;if(!a)return;let R=a.firstElementChild;if(r==="horizontal"){let b=R?.offsetWidth??a.clientWidth;a.scrollBy({left:b*n})}else{let b=R?.offsetHeight??a.clientHeight;a.scrollBy({top:b*n})}},[r]),w=l.useCallback(()=>i(-1),[i]),y=l.useCallback(()=>i(1),[i]);l.useEffect(()=>{let n=v.current;if(!n)return;p(),n.addEventListener("scroll",p,{passive:!0});let a=new ResizeObserver(p);return a.observe(n),()=>{n.removeEventListener("scroll",p),a.disconnect()}},[p]);let N=l.useCallback((n)=>{if(u?.(n),n.defaultPrevented)return;let a=r==="horizontal"?"ArrowLeft":"ArrowUp",R=r==="horizontal"?"ArrowRight":"ArrowDown";if(n.key===a)n.preventDefault(),w();else if(n.key===R)n.preventDefault(),y()},[u,r,w,y]),g=l.useMemo(()=>({viewportRef:v,orientation:r,canScrollPrev:h,canScrollNext:c,scrollPrev:w,scrollNext:y}),[r,h,c,w,y]);return m(z.Provider,{value:g,children:m("div",{"data-slot":"carousel",role:"region","aria-roledescription":"carousel",className:e("relative",f),onKeyDown:N,...C,children:d})})}function ze({className:r,...f}){let{viewportRef:d,orientation:u}=P();return m("div",{ref:d,"data-slot":"carousel-content",className:e("flex scroll-smooth motion-reduce:scroll-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",u==="horizontal"?"-ml-4 snap-x snap-mandatory overflow-x-auto":"-mt-4 flex-col snap-y snap-mandatory overflow-y-auto",r),...f})}function _e({className:r,...f}){let{orientation:d}=P();return m("div",{"data-slot":"carousel-item",role:"group","aria-roledescription":"slide",className:e("min-w-0 shrink-0 grow-0 basis-full snap-start",d==="horizontal"?"pl-4":"pt-4",r),...f})}function Ge({className:r,variant:f="outline",size:d="icon-sm",children:u,...C}){let{orientation:v,canScrollPrev:h,scrollPrev:x}=P();return m(o,{"data-slot":"carousel-previous",variant:f,size:d,"aria-label":"Previous slide",disabled:!h,onClick:x,className:e("absolute z-10 rounded-full",v==="horizontal"?"-left-4 top-1/2 -translate-y-1/2":"-top-4 left-1/2 -translate-x-1/2 rotate-90",r),...C,children:u??m(t,{icon:E})})}function He({className:r,variant:f="outline",size:d="icon-sm",children:u,...C}){let{orientation:v,canScrollNext:h,scrollNext:x}=P();return m(o,{"data-slot":"carousel-next",variant:f,size:d,"aria-label":"Next slide",disabled:!h,onClick:x,className:e("absolute z-10 rounded-full",v==="horizontal"?"-right-4 top-1/2 -translate-y-1/2":"-bottom-4 left-1/2 -translate-x-1/2 rotate-90",r),...C,children:u??m(t,{icon:H})})}function _n({count:r,className:f,...d}){let{viewportRef:u,orientation:C}=P(),[v,h]=l.useState(0);l.useEffect(()=>{let c=u.current;if(!c)return;let s=()=>{let p=c.firstElementChild;if(C==="horizontal"){let i=p?.offsetWidth??c.clientWidth;h(i>0?Math.round(c.scrollLeft/i):0)}else{let i=p?.offsetHeight??c.clientHeight;h(i>0?Math.round(c.scrollTop/i):0)}};return s(),c.addEventListener("scroll",s,{passive:!0}),()=>c.removeEventListener("scroll",s)},[u,C]);let x=(c)=>{let s=u.current;if(!s)return;let p=s.firstElementChild;if(C==="horizontal"){let i=p?.offsetWidth??s.clientWidth;s.scrollTo({left:i*c})}else{let i=p?.offsetHeight??s.clientHeight;s.scrollTo({top:i*c})}};return m("div",{"data-slot":"carousel-dots",className:e("flex items-center justify-center gap-2",f),...d,children:Array.from({length:r},(c,s)=>m("button",{type:"button","aria-label":`Go to slide ${s+1}`,"data-active":s===v?"":void 0,onClick:()=>x(s),className:"size-2 rounded-full bg-muted transition-colors data-[active]:bg-primary"},s))})}
|
|
2
|
+
export{P,Be,ze,_e,Ge,He,_n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{d}from"./index-
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{d}from"./index-nwwzg7n8.js";import{t}from"./index-yeehx7kc.js";import{s,C}from"./index-c59g8a08.js";import{Field as l}from"@base-ui/react/field";import{NumberField as o}from"@base-ui/react/number-field";import{faMinus as I,faPlus as R}from"@fortawesome/pro-solid-svg-icons";import{cva as m}from"class-variance-authority";import*as g from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var vn=m(["flex w-fit items-center gap-0.5 rounded-lg border border-input bg-background p-0.5 shadow-xs","transition-[color,box-shadow]","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","has-[[data-invalid]]:ring-destructive/20 has-[[data-invalid]]:border-destructive","has-[[data-disabled]]:pointer-events-none has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50"],{variants:{size:C},defaultVariants:{size:"md"}}),ct=m(`h-full min-w-0 bg-transparent text-center tabular-nums outline-none ${s}`,{variants:{size:{sm:"w-12",md:"w-14",lg:"w-16"}},defaultVariants:{size:"md"}}),ue=m(["flex aspect-square h-full shrink-0 items-center justify-center rounded-md","bg-secondary text-secondary-foreground shadow-xs-skeuomorphic touch-manipulation select-none","transition-[background-color,box-shadow,transform] duration-150","hover:bg-secondary/80 active:translate-y-px active:shadow-none","outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"]);function kr({size:i,className:N,label:u,error:c,scrubArea:F=!1,id:x,...b}){let h=d(),v=g.useId(),n=x||v,p=a(o.Group,{"data-slot":"number-field-group",className:e(vn({size:i}),N),children:[r(o.Decrement,{className:ue(),children:r(t,{icon:I,"data-slot":"icon"})}),r(o.Input,{className:e(ct({size:i}))}),r(o.Increment,{className:ue(),children:r(t,{icon:R,"data-slot":"icon"})})]}),w=r(o.Root,{id:n,...b,children:p});if(h)return w;let f=u?F?a(o.ScrubArea,{className:"cursor-ew-resize",children:[r(l.Label,{htmlFor:n,className:"cursor-ew-resize text-sm font-medium text-foreground",children:u}),r(o.ScrubAreaCursor,{className:"drop-shadow-[0_1px_1px_#0008] filter",children:r(V,{})})]}):r(l.Label,{htmlFor:n,className:"text-sm font-medium text-foreground",children:u}):null;return a(l.Root,{invalid:c?!0:void 0,className:"flex flex-col gap-1",children:[a(o.Root,{id:n,...b,children:[f&&r("div",{className:"mb-1 flex flex-col items-start",children:f}),p]}),r(l.Error,{className:"text-sm text-destructive",children:c})]})}function V(i){return a("svg",{width:"26",height:"14",viewBox:"0 0 24 14",fill:"black",stroke:"white",xmlns:"http://www.w3.org/2000/svg",...i,children:[r("title",{children:"Scrub cursor"}),r("path",{d:"M19.5 5.5L6.49737 5.51844V2L1 6.9999L6.5 12L6.49737 8.5L19.5 8.5V12L25 6.9999L19.5 2V5.5Z"})]})}export{vn,ct,ue,kr};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{cva as o}from"class-variance-authority";import{jsx as s}from"react/jsx-runtime";var gt=o("flex min-h-0 flex-col overflow-hidden rounded-lg border",{variants:{tone:{sunken:"border-border bg-tertiary",raised:"border-border bg-card",plain:"border-transparent bg-transparent"}},defaultVariants:{tone:"sunken"}});function
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{cva as o}from"class-variance-authority";import{jsx as s}from"react/jsx-runtime";var gt=o("flex min-h-0 flex-col overflow-hidden rounded-lg border",{variants:{tone:{sunken:"border-border bg-tertiary",raised:"border-border bg-card",plain:"border-transparent bg-transparent"}},defaultVariants:{tone:"sunken"}});function _r({tone:a,className:r,children:t,...n}){return s("div",{"data-slot":"panel",className:e(gt({tone:a}),r),...n,children:t})}var bt=o("flex shrink-0 items-center justify-between border-b border-border",{variants:{padding:{none:"",sm:"px-4 py-2.5",md:"px-6 py-3",lg:"px-6 py-4"}},defaultVariants:{padding:"md"}});function Gr({padding:a,className:r,children:t,...n}){return s("div",{"data-slot":"panel-header",className:e(bt({padding:a}),r),...n,children:t})}var xt=o("min-h-0 flex-1 overflow-y-auto",{variants:{padding:{none:"",sm:"p-4",md:"p-6",lg:"p-8"}},defaultVariants:{padding:"md"}});function Hr({padding:a,className:r,children:t,...n}){return s("div",{"data-slot":"panel-body",className:e(xt({padding:a}),r),...n,children:t})}var ht=o("flex shrink-0 items-center border-t border-border",{variants:{padding:{none:"",sm:"px-4 py-2.5",md:"px-6 py-3",lg:"px-6 py-4"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between"}},defaultVariants:{padding:"md",justify:"start"}});function Wr({padding:a,justify:r,className:t,children:n,...d}){return s("div",{"data-slot":"panel-footer",className:e(ht({padding:a,justify:r}),t),...d,children:n})}export{gt,_r,bt,Gr,xt,Hr,ht,Wr};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{M}from"./index-
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{t}from"./index-yeehx7kc.js";import{M}from"./index-qcwdn5ht.js";import{vo,Po}from"./index-c59g8a08.js";import{Popover as E}from"@base-ui/react/popover";import{faCalendar as ve,faChevronLeft as me,faChevronRight as he}from"@fortawesome/pro-solid-svg-icons";import{cva as R}from"class-variance-authority";import{useId as oe,useMemo as ie,useState as f}from"react";function g(a,n,s=1){let p=new Date(0);return p.setFullYear(a,n,s),p.setHours(0,0,0,0),p}function v(a){return g(a.getFullYear(),a.getMonth(),a.getDate())}function Y(a){let n=a.getFullYear();return`${n>=0&&n<=9999?String(n).padStart(4,"0"):`${n<0?"-":"+"}${String(Math.abs(n)).padStart(6,"0")}`}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`}function A(a){let n=/^(\d{4}|[+-]\d{6})-(\d{2})-(\d{2})$/.exec(a);if(!n)return null;let s=Number(n[1]),p=Number(n[2])-1,b=Number(n[3]),y=g(s,p,b);return y.getFullYear()===s&&y.getMonth()===p&&y.getDate()===b?y:null}function z(a,n,s){return Number.isFinite(a.getTime())&&(!n||a>=v(n))&&(!s||a<=v(s))}function w(a,n,s){let p=g(a.getFullYear(),a.getMonth()),b=g(a.getFullYear(),a.getMonth()+1,0);return Number.isFinite(p.getTime())&&Number.isFinite(b.getTime())&&(!n||b>=v(n))&&(!s||p<=v(s))}function F(a,n,s){let p=n&&a<v(n)?n:s&&a>v(s)?s:a;return g(p.getFullYear(),p.getMonth())}import{jsx as i,jsxs as O}from"react/jsx-runtime";var io=R(["flex w-full items-center justify-between gap-2 rounded-lg border border-input bg-background whitespace-nowrap shadow-xs","text-foreground","transition-[color,box-shadow] outline-none select-none cursor-default","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[popup-open]:border-ring data-[popup-open]:ring-ring/50 data-[popup-open]:ring-[3px]","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","[&_svg:not([class*='text-'])]:text-muted-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:Po},defaultVariants:{size:"md"}}),so=R(["bg-background text-foreground","relative z-50 rounded-xl border border-input p-3 shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity] motion-reduce:transition-none","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[side=bottom]:data-[starting-style]:scale-95 data-[side=top]:data-[starting-style]:scale-95","data-[side=bottom]:data-[ending-style]:scale-95 data-[side=top]:data-[ending-style]:scale-95"]),lo=R(["flex size-9 items-center justify-center rounded-md text-sm","transition-colors outline-none cursor-default","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-30"],{variants:{selected:{true:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground",false:""},today:{true:"font-semibold ring-1 ring-ring",false:""},outside:{true:"text-muted-foreground/50",false:""}},compoundVariants:[{selected:!0,today:!0,className:"ring-0"}],defaultVariants:{selected:!1,today:!1,outside:!1}}),ye=["Su","Mo","Tu","We","Th","Fr","Sa"];function se(a,n){return a.getFullYear()===n.getFullYear()&&a.getMonth()===n.getMonth()&&a.getDate()===n.getDate()}function ke(a){return a.toLocaleDateString()}function Aa({value:a,defaultValue:n,onValueChange:s,placeholder:p="Pick a date",disabled:b,format:y=ke,min:l,max:u,size:_,className:le,"aria-label":H="Date"}){let W=a!==void 0,[ue,de]=f(n??null),D=W?a:ue,[G,B]=f(!1),S=D?Y(D):"",L=`${l?Y(l):""}/${u?Y(u):""}`,[Z,ce]=f(S),[ge,pe]=f(L),[d,q]=f(()=>F(D??new Date,l,u)),[m,T]=f(null),[J,Q]=f(!1),[V,k]=f(""),[h,C]=f(null),[U,x]=f(""),X=oe(),ee=oe(),te=(r)=>{if(r==="")return"";let o=A(r);if(!o)return"Enter a valid date in YYYY-MM-DD format.";return z(o,l,u)?"":`Date must be ${l?`on or after ${Y(l)}`:""}${l&&u?" and ":""}${u?`on or before ${Y(u)}`:""}.`};if(b&&G)B(!1);if(S!==Z||L!==ge){if(ce(S),pe(L),q(F(D??new Date,l,u)),C(null),x(""),S!==Z)T(null),k("");else if(m!==null&&V)k(te(m))}let P=(r)=>{q(r),C(null),x("")},K=(r)=>{if(!W)de(r);s?.(r),T(null),k("")},re=()=>{if(m===null)return;if(m===""){K(null);return}let r=te(m);if(r){k(r);return}let o=A(m);if(!o)return;K(o),P(F(o,l,u))},j=()=>{if(h===null)return d;let r=Number(h),o=g(r,d.getMonth());if(!/^[+-]?\d+$/.test(h)||!Number.isSafeInteger(r)||!Number.isFinite(o.getTime()))return x("Enter a valid calendar year."),null;let c=F(o,l,u);if(!w(c,l,u))return x("No available month in this year."),null;return P(c),c},fe=ie(()=>v(new Date),[]),be=ie(()=>{let r=g(d.getFullYear(),d.getMonth(),1),o=new Date(r);return o.setDate(o.getDate()-o.getDay()),Array.from({length:42},(c,N)=>{let I=new Date(o);return I.setDate(o.getDate()+N),I}).filter((c)=>Number.isFinite(c.getTime()))},[d]),ae=g(d.getFullYear(),d.getMonth()-1),ne=g(d.getFullYear(),d.getMonth()+1),De=(r)=>{let o=r;if(h!==null){let c=j();if(!c)return;let N=(r.getFullYear()-d.getFullYear())*12+r.getMonth()-d.getMonth();if(o=g(c.getFullYear(),c.getMonth()+N,r.getDate()),o.getDate()!==r.getDate())return}if(!z(o,l,u))return;K(v(o)),B(!1)};return i("div",{className:le,"data-slot":"date-picker",children:O(E.Root,{open:G,onOpenChange:(r)=>{if(r)P(F(D??new Date,l,u));B(r)},children:[O("div",{className:"flex items-center gap-1",children:[i("input",{"data-slot":"date-picker-input","aria-label":H,"aria-describedby":X,"aria-invalid":!!V,disabled:b,placeholder:J?"YYYY-MM-DD":p,value:m??(J?S:D?y(D):""),onFocus:()=>Q(!0),onChange:(r)=>{T(r.target.value),k("")},onBlur:()=>{re(),Q(!1)},onKeyDown:(r)=>{if(r.key==="Enter")r.preventDefault(),re();if(r.key==="Escape"&&m!==null)r.preventDefault(),r.stopPropagation(),T(null),k("")},className:e(M({size:_}),"rounded-lg border border-input shadow-xs focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:opacity-50 disabled:cursor-not-allowed aria-invalid:border-destructive")}),i(E.Trigger,{"data-slot":"date-picker-trigger",disabled:b,"aria-label":`Open calendar for ${H}`,className:e(io({size:_}),"w-auto shrink-0",vo[_??"md"]),children:i(t,{icon:ve})})]}),i("p",{id:X,className:e("text-xs",V?"text-destructive":"text-muted-foreground"),"aria-live":"polite",children:V||"Enter YYYY-MM-DD or choose a date."}),i(E.Portal,{children:i(E.Positioner,{"data-slot":"date-picker-positioner",className:"z-50 outline-none",sideOffset:6,children:O(E.Popup,{"aria-label":"Choose a date","data-slot":"date-picker-content",className:e(so()),children:[O("div",{"data-slot":"date-picker-header",className:"flex items-center justify-between px-1 pb-2",children:[i("button",{type:"button","data-slot":"date-picker-prev","aria-label":"Previous month",disabled:!w(ae,l,u),onClick:()=>P(ae),className:"inline-flex size-7 touch-manipulation items-center justify-center rounded-md text-muted-foreground transition-colors outline-none cursor-default hover:bg-ink-hover hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:opacity-30 disabled:pointer-events-none [&_svg]:size-4",children:i(t,{icon:me})}),i("select",{"aria-label":"Month",value:d.getMonth(),onChange:(r)=>P(g(d.getFullYear(),Number(r.target.value))),className:e(M({size:"sm"}),"w-28 rounded-md border border-input text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50"),children:Array.from({length:12},(r,o)=>i("option",{value:o,disabled:!w(g(d.getFullYear(),o),l,u),children:g(2024,o).toLocaleDateString(void 0,{month:"long"})},g(2024,o).toDateString()))}),i("input",{"aria-label":"Year","aria-describedby":ee,"aria-invalid":!!U,value:h??String(d.getFullYear()),onChange:(r)=>{C(r.target.value),x("")},onBlur:(r)=>{if(r.relatedTarget instanceof HTMLElement&&r.relatedTarget.dataset.slot==="date-picker-day")return;j()},onKeyDown:(r)=>{if(r.key==="Enter")r.preventDefault(),j();if(r.key==="Escape"&&h!==null)r.preventDefault(),r.stopPropagation(),C(null),x("")},className:e(M({size:"sm"}),"w-20 rounded-md border border-input focus-visible:ring-[3px] focus-visible:ring-ring/50")}),i("button",{type:"button","data-slot":"date-picker-next","aria-label":"Next month",disabled:!w(ne,l,u),onClick:()=>P(ne),className:"inline-flex size-7 touch-manipulation items-center justify-center rounded-md text-muted-foreground transition-colors outline-none cursor-default hover:bg-ink-hover hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:opacity-30 disabled:pointer-events-none [&_svg]:size-4",children:i(t,{icon:he})})]}),i("p",{id:ee,className:"text-xs text-destructive","aria-live":"polite",children:U}),i("div",{"data-slot":"date-picker-weekdays",className:"grid grid-cols-7",children:ye.map((r)=>i("span",{"data-slot":"date-picker-weekday",className:"flex size-9 items-center justify-center text-xs text-muted-foreground",children:r},r))}),i("div",{"data-slot":"date-picker-grid",className:"grid grid-cols-7",children:be.map((r)=>{let o=r.getMonth()!==d.getMonth(),c=D?se(r,D):!1,N=se(r,fe);return i("button",{type:"button","data-slot":"date-picker-day",disabled:!z(r,l,u),"aria-label":r.toLocaleDateString(void 0,{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":c,"aria-current":N?"date":void 0,onPointerDown:(I)=>{if(h!==null)I.preventDefault()},onClick:()=>De(r),className:e(lo({selected:c,today:N&&!c,outside:o&&!c})),children:r.getDate()},r.toISOString())})})]})})})]})})}export{io,so,lo,Aa};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{Field as n}from"@base-ui/react/field";import{cva as c}from"class-variance-authority";import{createContext as u,useContext as m,useMemo as g}from"react";import{jsx as a,jsxs as x}from"react/jsx-runtime";var f=u(!1);function d(){return m(f)}function L({children:t}){return a(f.Provider,{value:!0,children:t})}var co=c("group/field flex w-full gap-3 border-0 p-0 m-0 data-[invalid]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Ba({className:t,orientation:o="vertical",children:r,...i}){return a(n.Root,{"data-slot":"field","data-orientation":o,className:e(co({orientation:o}),t),render:a("fieldset",{}),...i,children:a(L,{children:r})})}function za({className:t,...o}){return a("fieldset",{"data-slot":"field-set",className:e("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),...o})}function
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{Field as n}from"@base-ui/react/field";import{cva as c}from"class-variance-authority";import{createContext as u,useContext as m,useMemo as g}from"react";import{jsx as a,jsxs as x}from"react/jsx-runtime";var f=u(!1);function d(){return m(f)}function L({children:t}){return a(f.Provider,{value:!0,children:t})}var co=c("group/field flex w-full gap-3 border-0 p-0 m-0 data-[invalid]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*:not([role=checkbox]):not([role=radio]):not([role=switch])]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Ba({className:t,orientation:o="vertical",children:r,...i}){return a(n.Root,{"data-slot":"field","data-orientation":o,className:e(co({orientation:o}),t),render:a("fieldset",{}),...i,children:a(L,{children:r})})}function za({className:t,...o}){return a("fieldset",{"data-slot":"field-set",className:e("flex flex-col gap-6","has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",t),...o})}function _a({className:t,variant:o="legend",...r}){return a("legend",{"data-slot":"field-legend","data-variant":o,className:e("mb-3 font-medium text-foreground","data-[variant=legend]:text-base","data-[variant=label]:text-sm",t),...r})}function Ga({className:t,...o}){return a("div",{"data-slot":"field-group",className:e("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),...o})}function Ha({className:t,...o}){return a("div",{"data-slot":"field-content",className:e("group/field-content flex flex-1 flex-col gap-1.5 leading-snug",t),...o})}function oe({className:t,...o}){return a(n.Label,{"data-slot":"field-label",className:e("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none","group/field-label peer/field-label w-fit leading-snug group-data-[disabled]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary",t),...o})}function Wa({className:t,...o}){return a("div",{"data-slot":"field-label",className:e("flex w-fit items-center gap-2 text-sm leading-snug font-medium text-foreground group-data-[disabled]/field:opacity-50",t),...o})}function re({className:t,...o}){return a(n.Description,{"data-slot":"field-description",className:e("text-muted-foreground text-[13px] leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",t),...o})}function $a({children:t,className:o,...r}){return x("div",{"data-slot":"field-separator","data-content":!!t,className:e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",o),...r,children:[a("div",{className:"absolute inset-0 top-1/2 h-px bg-border"}),t&&a("span",{className:"bg-background text-muted-foreground relative mx-auto block w-fit px-2","data-slot":"field-separator-content",children:t})]})}function ae({className:t,children:o,errors:r,...i}){let p=g(()=>{if(o)return o;if(!r?.length)return null;let s=[...new Map(r.map((l)=>[l?.message,l])).values()];if(s?.length===1)return s[0]?.message;return a("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:s.map((l)=>l?.message&&a("li",{children:l.message},l.message))})},[o,r]);if(!p&&!i.match)return null;return a(n.Error,{"data-slot":"field-error",className:e("text-destructive text-sm font-normal",t),...i,children:p})}export{d,L,co,Ba,za,_a,Ga,Ha,oe,Wa,re,$a,ae};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{d}from"./index-
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{d}from"./index-nwwzg7n8.js";import{t}from"./index-yeehx7kc.js";import{Co}from"./index-c59g8a08.js";import{Select as o}from"@base-ui/react/select";import{faCheck as T,faChevronDown as y,faChevronUp as k}from"@fortawesome/pro-solid-svg-icons";import{cva as c}from"class-variance-authority";import{jsx as a,jsxs as s,Fragment as R}from"react/jsx-runtime";var te=c(["flex w-full items-center justify-between gap-2 rounded-lg border border-input bg-background whitespace-nowrap shadow-xs","text-foreground","transition-[color,box-shadow] outline-none select-none cursor-default","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[popup-open]:border-ring","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50","data-[placeholder]:text-muted-foreground","[&_svg:not([class*='text-'])]:text-muted-foreground","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{size:Co,variant:{outline:"",ghost:["border-transparent bg-transparent shadow-none","hover:bg-accent hover:text-accent-foreground","data-[popup-open]:border-transparent data-[popup-open]:bg-accent","[&_[data-slot=select-icon]]:opacity-0","hover:[&_[data-slot=select-icon]]:opacity-50 focus-visible:[&_[data-slot=select-icon]]:opacity-50 data-[popup-open]:[&_[data-slot=select-icon]]:opacity-50"]}},defaultVariants:{size:"md",variant:"outline"}}),Ma=c(["bg-background text-foreground","relative z-50 max-h-[var(--available-height)] min-w-[var(--anchor-width)] overflow-hidden rounded-lg border border-border shadow-lg","origin-[var(--transform-origin)]","outline-none","transition-[transform,scale,opacity] motion-reduce:transition-none","data-[starting-style]:opacity-0","data-[ending-style]:opacity-0","data-[side=bottom]:data-[starting-style]:scale-95 data-[side=top]:data-[starting-style]:scale-95","data-[side=bottom]:data-[ending-style]:scale-95 data-[side=top]:data-[ending-style]:scale-95","data-[side=none]:translate-y-px"]),La=c(["relative flex w-full cursor-default items-center gap-2 rounded-sm pr-8 pl-2 outline-hidden select-none","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","[&_svg:not([class*='text-'])]:text-muted-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"],{variants:{size:{sm:"py-1 text-sm",md:"py-1.5 text-sm",lg:"py-1.5 pl-2.5 text-sm"}},defaultVariants:{size:"md"}});function g({options:p,value:h,defaultValue:S,onValueChange:w,placeholder:N="Select an option",label:n,error:u,disabled:I,size:m,variant:f,"aria-label":V,"aria-labelledby":z,className:_,name:b,width:l}){let B=d(),v=b||n?.toLowerCase().replace(/\s+/g,"-"),P=l?{width:typeof l==="number"?`${l}px`:l}:void 0,x=s(o.Root,{name:b,value:h,defaultValue:S,onValueChange:w,disabled:I,children:[s(o.Trigger,{id:v,"data-slot":"select-trigger","data-variant":f??"outline","aria-label":V,"aria-labelledby":z,className:e(te({size:m,variant:f}),_),children:[a(o.Value,{"data-slot":"select-value",className:"line-clamp-1 flex items-center gap-2",children:(r)=>{let i=p.find((C)=>C.value===r);if(!i)return N;return s(R,{children:[i.icon,i.label]})}}),a(o.Icon,{"data-slot":"select-icon",className:"flex opacity-50 transition-opacity",children:a(t,{icon:y})})]}),a(o.Portal,{children:a(o.Positioner,{className:"z-50 outline-none",children:s(o.Popup,{"data-slot":"select-content",className:e(Ma()),children:[a(o.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:"top-0 z-10 flex h-6 w-full cursor-default items-center justify-center rounded-t-lg bg-background text-muted-foreground",children:a(t,{icon:k,className:"size-3"})}),a(o.List,{className:"p-1 max-h-[var(--available-height)] overflow-y-auto overscroll-contain scroll-my-6",children:p.map((r)=>s(o.Item,{value:r.value,disabled:r.disabled,"data-slot":"select-item",className:e(La({size:m})),children:[a("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:a(o.ItemIndicator,{children:a(t,{icon:T,className:"size-4 text-primary"})})}),r.icon,a(o.ItemText,{children:r.label})]},r.value))}),a(o.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:"bottom-0 z-10 flex h-6 w-full cursor-default items-center justify-center rounded-b-lg bg-background text-muted-foreground",children:a(t,{icon:y,className:"size-3"})})]})})})]});if(B)return x;return s("div",{className:"flex flex-col gap-1",style:P,children:[n&&a("label",{htmlFor:v,className:"text-sm font-medium text-foreground",children:n}),x,u&&a("span",{className:"text-sm text-destructive",children:u})]})}
|
|
2
2
|
export{te,Ma,La,g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./index-6hjt8vvj.js";import{d}from"./index-
|
|
1
|
+
import{e}from"./index-6hjt8vvj.js";import{d}from"./index-nwwzg7n8.js";import{s,A,We,C}from"./index-c59g8a08.js";import{Field as p}from"@base-ui/react/field";import{Input as V}from"@base-ui/react/input";import{cva as u}from"class-variance-authority";import{forwardRef as E}from"react";import{jsx as t,jsxs as v}from"react/jsx-runtime";var M=u("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground w-full min-w-0 bg-background outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",{variants:{size:A},defaultVariants:{size:"md"}}),P=u(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground h-full min-w-0 flex-1 bg-transparent outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium ${s}`),Sn=u("border-input flex w-full items-center rounded-lg border bg-background shadow-xs transition-[color,box-shadow]",{variants:{size:C},defaultVariants:{size:"md"}}),y=E(({label:o,error:f,leading:r,trailing:n,addonBefore:i,addonAfter:a,className:N,id:I,value:c,defaultValue:w,size:l,...R},T)=>{let _=d(),m=I||o?.toLowerCase().replace(/\s+/g,"-"),b=r||n||i||a,x=l??"md",O=c!==void 0?{value:c}:{defaultValue:w??""},g=t(V,{ref:T,id:m,"data-slot":"input",className:e(b?[P(),r?"pl-2":"pl-3",n?"pr-2":"pr-3"]:[M({size:l}),"rounded-lg border border-input shadow-xs transition-[color,box-shadow]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","data-[invalid]:ring-destructive/20 data-[invalid]:border-destructive","data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"],N),...O,...R}),h=b?v("div",{"data-slot":"input-wrapper",className:e(Sn({size:l}),"overflow-hidden","has-[input:focus-visible]:border-ring has-[input:focus-visible]:ring-ring/50 has-[input:focus-visible]:ring-[3px]","has-[[data-disabled]]:pointer-events-none has-[[data-disabled]]:cursor-not-allowed has-[[data-disabled]]:opacity-50","has-[[data-invalid]]:ring-destructive/20 has-[[data-invalid]]:border-destructive","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground/60"),children:[i&&t("span",{className:"flex items-center self-stretch border-r border-input bg-muted px-3 text-muted-foreground",children:i}),r&&t("span",{className:e("flex items-center",We[x].leading),children:r}),g,n&&t("span",{className:e("flex items-center",We[x].trailing),children:n}),a&&t("span",{className:"flex items-center self-stretch border-l border-input bg-muted px-3 text-muted-foreground",children:a})]}):g;if(_)return h;return v(p.Root,{invalid:f?!0:void 0,className:"flex flex-col gap-1",children:[o&&t(p.Label,{htmlFor:m,className:"text-sm font-medium text-foreground",children:o}),h,t(p.Error,{className:"text-sm text-destructive",children:f})]})});y.displayName="Input";export{M,Sn,y};
|