@duyluonganduin/acl-web-components 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.d.ts +73 -0
- package/dist/acl-web-components.iife.js +246 -128
- package/dist/acl-web-components.js +85 -80
- package/dist/{anduin-resizable-B6jlFgZC.cjs → anduin-pagination-B-A3Nk_J.cjs} +241 -123
- package/dist/{anduin-resizable-2JzM-nGd.js → anduin-pagination-Dym6znEk.js} +1159 -890
- package/dist/jsx.d.ts +16 -0
- package/dist/react.cjs +5 -1
- package/dist/react.d.ts +78 -0
- package/dist/react.js +178 -139
- package/package.json +4 -6
package/dist/jsx.d.ts
CHANGED
|
@@ -532,6 +532,22 @@ declare module 'react' {
|
|
|
532
532
|
/** Render a visible grip on the divider */
|
|
533
533
|
'with-handle'?: boolean | string
|
|
534
534
|
}
|
|
535
|
+
|
|
536
|
+
// ── anduin-pagination ─────────────────────────────────────────────────
|
|
537
|
+
'anduin-pagination': Base & {
|
|
538
|
+
/** Total number of pages; the bar hides itself when 0 or 1 */
|
|
539
|
+
'number-of-pages'?: number | string
|
|
540
|
+
/** Initial active page for uncontrolled usage (default: 1) */
|
|
541
|
+
'default-value'?: number | string
|
|
542
|
+
/** Controlled active page; omit for uncontrolled usage */
|
|
543
|
+
value?: number | string
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// ── anduin-pagination-first-page ──────────────────────────────────────
|
|
547
|
+
'anduin-pagination-first-page': Base
|
|
548
|
+
|
|
549
|
+
// ── anduin-pagination-last-page ───────────────────────────────────────
|
|
550
|
+
'anduin-pagination-last-page': Base
|
|
535
551
|
}
|
|
536
552
|
}
|
|
537
553
|
}
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),e=require("./anduin-pagination-B-A3Nk_J.cjs");/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2018 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/const p=new Set(["children","localName","ref","style","className"]),T=new WeakMap,_=(i,E,d,c,g)=>{const A=g==null?void 0:g[E];A===void 0?(i[E]=d,d==null&&E in HTMLElement.prototype&&i.removeAttribute(E)):d!==c&&((u,r,C)=>{let l=T.get(u);l===void 0&&T.set(u,l=new Map);let o=l.get(r);C!==void 0?o===void 0?(l.set(r,o={handleEvent:C}),u.addEventListener(r,o)):o.handleEvent=C:o!==void 0&&(l.delete(r),u.removeEventListener(r,o))})(i,A,d)},a=({react:i,tagName:E,elementClass:d,events:c,displayName:g})=>{const A=new Set(Object.keys(c??{})),u=i.forwardRef(((r,C)=>{const l=i.useRef(new Map),o=i.useRef(null),N={},m={};for(const[t,s]of Object.entries(r))p.has(t)?N[t==="className"?"class":t]=s:A.has(t)||t in d.prototype?m[t]=s:N[t]=s;return i.useLayoutEffect((()=>{if(o.current===null)return;const t=new Map;for(const s in m)_(o.current,s,r[s],l.current.get(s),c),l.current.delete(s),t.set(s,r[s]);for(const[s,G]of l.current)_(o.current,s,void 0,G,c);l.current=t})),i.useLayoutEffect((()=>{var t;(t=o.current)==null||t.removeAttribute("defer-hydration")}),[]),N.suppressHydrationWarning=!0,i.createElement(E,{...N,ref:i.useCallback((t=>{o.current=t,typeof C=="function"?C(t):C!==null&&(C.current=t)}),[C])})}));return u.displayName=g??d.name,u},O=a({react:n,tagName:"anduin-spinner",elementClass:e.AnduinSpinner}),L=a({react:n,tagName:"anduin-sparkle-spinner",elementClass:e.AnduinSparkleSpinner}),S=a({react:n,tagName:"anduin-icon",elementClass:e.AnduinIcon}),R=a({react:n,tagName:"anduin-badge",elementClass:e.AnduinBadge}),I=a({react:n,tagName:"anduin-badge-count",elementClass:e.AnduinBadgeCount}),P=a({react:n,tagName:"anduin-button",elementClass:e.AnduinButton}),v=a({react:n,tagName:"anduin-callout",elementClass:e.AnduinCallout}),H=a({react:n,tagName:"anduin-divider",elementClass:e.AnduinDivider}),b=a({react:n,tagName:"anduin-dot",elementClass:e.AnduinDot}),D=a({react:n,tagName:"anduin-progress",elementClass:e.AnduinProgress}),M=a({react:n,tagName:"anduin-skeleton",elementClass:e.AnduinSkeleton}),U=a({react:n,tagName:"anduin-loading-state",elementClass:e.AnduinLoadingState}),f=a({react:n,tagName:"anduin-field",elementClass:e.AnduinField}),h=a({react:n,tagName:"anduin-field-label",elementClass:e.AnduinFieldLabel}),F=a({react:n,tagName:"anduin-field-description",elementClass:e.AnduinFieldDescription}),w=a({react:n,tagName:"anduin-field-error",elementClass:e.AnduinFieldError}),W=a({react:n,tagName:"anduin-field-group",elementClass:e.AnduinFieldGroup}),V=a({react:n,tagName:"anduin-radio",elementClass:e.AnduinRadio,events:{onChange:e.RADIO_CHANGE}}),k=a({react:n,tagName:"anduin-radio-group",elementClass:e.AnduinRadioGroup,events:{onChange:e.RADIO_GROUP_CHANGE}}),B=a({react:n,tagName:"anduin-checkbox",elementClass:e.AnduinCheckbox,events:{onChange:e.CHECKBOX_CHANGE}}),y=a({react:n,tagName:"anduin-input",elementClass:e.AnduinInput,events:{onChange:e.INPUT_CHANGE,onClear:e.INPUT_CLEAR}}),z=a({react:n,tagName:"anduin-textarea",elementClass:e.AnduinTextarea,events:{onChange:e.TEXTAREA_CHANGE}}),K=a({react:n,tagName:"anduin-popover",elementClass:e.AnduinPopover}),x=a({react:n,tagName:"anduin-popover-close",elementClass:e.AnduinPopoverClose}),X=a({react:n,tagName:"anduin-menu",elementClass:e.AnduinMenu}),j=a({react:n,tagName:"anduin-menu-item",elementClass:e.AnduinMenuItem}),Z=a({react:n,tagName:"anduin-modal",elementClass:e.AnduinModal,events:{onClose:e.MODAL_CLOSE_EVENT,onAfterClose:e.MODAL_AFTER_CLOSE_EVENT}}),q=a({react:n,tagName:"anduin-modal-close",elementClass:e.AnduinModalClose}),J=a({react:n,tagName:"anduin-tabs",elementClass:e.AnduinTabs,events:{onChange:e.TAB_CHANGE}}),Q=a({react:n,tagName:"anduin-tabs-list",elementClass:e.AnduinTabsList}),Y=a({react:n,tagName:"anduin-tab-trigger",elementClass:e.AnduinTabTrigger}),$=a({react:n,tagName:"anduin-tab-content",elementClass:e.AnduinTabContent}),ee=a({react:n,tagName:"anduin-tag",elementClass:e.AnduinTag}),ne=a({react:n,tagName:"anduin-tag-close",elementClass:e.AnduinTagClose,events:{onClick:e.TAG_CLOSE_CLICK}}),ae=a({react:n,tagName:"anduin-toggle-group",elementClass:e.AnduinToggleGroup,events:{onChange:e.TOGGLE_GROUP_CHANGE}}),te=a({react:n,tagName:"anduin-toggle-group-item",elementClass:e.AnduinToggleGroupItem,events:{onChange:e.TOGGLE_GROUP_ITEM_CHANGE,onSelect:e.TOGGLE_GROUP_ITEM_SELECT,onDeselect:e.TOGGLE_GROUP_ITEM_DESELECT}}),oe=a({react:n,tagName:"anduin-tooltip",elementClass:e.AnduinTooltip}),se=a({react:n,tagName:"anduin-tooltip-trigger",elementClass:e.AnduinTooltipTrigger}),ie=a({react:n,tagName:"anduin-tooltip-content",elementClass:e.AnduinTooltipContent}),le=a({react:n,tagName:"anduin-well",elementClass:e.AnduinWell}),re=a({react:n,tagName:"anduin-well-close",elementClass:e.AnduinWellClose,events:{onClick:e.WELL_CLOSE_CLICK}}),Ce=a({react:n,tagName:"anduin-avatar",elementClass:e.AnduinAvatar}),de=a({react:n,tagName:"anduin-file-icon",elementClass:e.AnduinFileIcon}),ue=a({react:n,tagName:"anduin-toast",elementClass:e.AnduinToast}),Ee=a({react:n,tagName:"anduin-toaster",elementClass:e.AnduinToaster}),ce=a({react:n,tagName:"anduin-dropdown",elementClass:e.AnduinDropdown,events:{onChange:e.DROPDOWN_CHANGE}}),ge=a({react:n,tagName:"anduin-drawer",elementClass:e.AnduinDrawer,events:{onClose:e.DRAWER_CLOSE_EVENT,onAfterClose:e.DRAWER_AFTER_CLOSE_EVENT}}),Ae=a({react:n,tagName:"anduin-drawer-close",elementClass:e.AnduinDrawerClose}),Ne=a({react:n,tagName:"anduin-switcher",elementClass:e.AnduinSwitcher,events:{onChange:e.SWITCHER_CHANGE}}),me=a({react:n,tagName:"anduin-suggestion",elementClass:e.AnduinSuggestion,events:{onChange:e.SUGGESTION_CHANGE,onSelect:e.SUGGESTION_SELECT,onClear:e.SUGGESTION_CLEAR}}),Te=a({react:n,tagName:"anduin-navigation",elementClass:e.AnduinNavigation,events:{onChange:e.NAVIGATION_CHANGE}}),_e=a({react:n,tagName:"anduin-navigation-item",elementClass:e.AnduinNavigationItem}),Ge=a({react:n,tagName:"anduin-resizable-panel-group",elementClass:e.AnduinResizablePanelGroup}),pe=a({react:n,tagName:"anduin-resizable-panel",elementClass:e.AnduinResizablePanel}),Oe=a({react:n,tagName:"anduin-resizable-handle",elementClass:e.AnduinResizableHandle,events:{onResize:e.RESIZE_EVENT}}),Le=a({react:n,tagName:"anduin-pagination",elementClass:e.AnduinPagination,events:{onValueChange:e.PAGINATION_CHANGE}}),Se=a({react:n,tagName:"anduin-pagination-first-page",elementClass:e.AnduinPaginationFirstPage}),Re=a({react:n,tagName:"anduin-pagination-last-page",elementClass:e.AnduinPaginationLastPage});exports.CHECKBOX_CHANGE=e.CHECKBOX_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=e.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=e.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=e.DROPDOWN_CHANGE;exports.INPUT_CHANGE=e.INPUT_CHANGE;exports.INPUT_CLEAR=e.INPUT_CLEAR;exports.MENU_ITEM_CLICK=e.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=e.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=e.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=e.NAVIGATION_CHANGE;exports.PAGINATION_CHANGE=e.PAGINATION_CHANGE;exports.RADIO_CHANGE=e.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=e.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=e.RESIZE_EVENT;exports.SUGGESTION_CHANGE=e.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=e.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=e.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=e.SWITCHER_CHANGE;exports.TAB_CHANGE=e.TAB_CHANGE;exports.TAG_CLOSE_CLICK=e.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=e.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=e.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=e.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_DESELECT=e.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=e.TOGGLE_GROUP_ITEM_SELECT;exports.WELL_CLOSE_CLICK=e.WELL_CLOSE_CLICK;exports.Avatar=Ce;exports.Badge=R;exports.BadgeCount=I;exports.Button=P;exports.Callout=v;exports.Checkbox=B;exports.Divider=H;exports.Dot=b;exports.Drawer=ge;exports.DrawerClose=Ae;exports.Dropdown=ce;exports.Field=f;exports.FieldDescription=F;exports.FieldError=w;exports.FieldGroup=W;exports.FieldLabel=h;exports.FileIcon=de;exports.Icon=S;exports.Input=y;exports.LoadingState=U;exports.Menu=X;exports.MenuItem=j;exports.Modal=Z;exports.ModalClose=q;exports.Navigation=Te;exports.NavigationItem=_e;exports.Pagination=Le;exports.PaginationFirstPage=Se;exports.PaginationLastPage=Re;exports.Popover=K;exports.PopoverClose=x;exports.Progress=D;exports.Radio=V;exports.RadioGroup=k;exports.ResizableHandle=Oe;exports.ResizablePanel=pe;exports.ResizablePanelGroup=Ge;exports.Skeleton=M;exports.SparkleSpinner=L;exports.Spinner=O;exports.Suggestion=me;exports.Switcher=Ne;exports.TabContent=$;exports.TabTrigger=Y;exports.Tabs=J;exports.TabsList=Q;exports.Tag=ee;exports.TagClose=ne;exports.Textarea=z;exports.Toast=ue;exports.Toaster=Ee;exports.ToggleGroup=ae;exports.ToggleGroupItem=te;exports.Tooltip=oe;exports.TooltipContent=ie;exports.TooltipTrigger=se;exports.Well=le;exports.WellClose=re;
|
package/dist/react.d.ts
CHANGED
|
@@ -323,6 +323,61 @@ declare class AnduinNavigationItem extends LitElement {
|
|
|
323
323
|
render(): TemplateResult<1>;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
/**
|
|
327
|
+
* Page navigation controls for paginated content. Renders a row of page-number
|
|
328
|
+
* buttons with previous/next navigators, ellipsis menus for skipped ranges, and
|
|
329
|
+
* a sliding highlight on the active page.
|
|
330
|
+
*
|
|
331
|
+
* Uncontrolled (default): manages its own page state — set `number-of-pages`
|
|
332
|
+
* (and optionally `default-value`). Controlled: set `value` and update it in
|
|
333
|
+
* response to the `anduin-pagination:change` event (React `onValueChange`).
|
|
334
|
+
*
|
|
335
|
+
* Slot in `<anduin-pagination-first-page>` / `<anduin-pagination-last-page>` as
|
|
336
|
+
* children to add jump-to-boundary buttons.
|
|
337
|
+
*/
|
|
338
|
+
declare class AnduinPagination extends LitElement {
|
|
339
|
+
static styles: CSSResult;
|
|
340
|
+
/** Total number of pages. The bar hides itself when this is 0 or 1. */
|
|
341
|
+
numberOfPages: number;
|
|
342
|
+
/** Initial active page for uncontrolled usage. */
|
|
343
|
+
defaultValue: number;
|
|
344
|
+
/** Controlled active page. Leave unset (null) for uncontrolled usage. */
|
|
345
|
+
value: number | null;
|
|
346
|
+
private internalValue;
|
|
347
|
+
private indicatorEl?;
|
|
348
|
+
private indicatorReady;
|
|
349
|
+
private get isControlled();
|
|
350
|
+
private get count();
|
|
351
|
+
private get selection();
|
|
352
|
+
connectedCallback(): void;
|
|
353
|
+
disconnectedCallback(): void;
|
|
354
|
+
private onJump;
|
|
355
|
+
/** MUI-style windowing: boundaryCount = 1, siblingCount = 1. */
|
|
356
|
+
private buildItems;
|
|
357
|
+
private goTo;
|
|
358
|
+
updated(): void;
|
|
359
|
+
/** Push disabled state onto slotted first/last-page buttons. */
|
|
360
|
+
private syncBoundaryButtons;
|
|
361
|
+
private positionIndicator;
|
|
362
|
+
private onSlotChange;
|
|
363
|
+
render(): typeof nothing | TemplateResult<1>;
|
|
364
|
+
private renderItem;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/** Jumps to page 1. Slot into `<anduin-pagination>` as a child. */
|
|
368
|
+
declare class AnduinPaginationFirstPage extends BoundaryButton {
|
|
369
|
+
protected icon: string;
|
|
370
|
+
protected label: string;
|
|
371
|
+
protected target: "first";
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** Jumps to the last page. Slot into `<anduin-pagination>` as a child. */
|
|
375
|
+
declare class AnduinPaginationLastPage extends BoundaryButton {
|
|
376
|
+
protected icon: string;
|
|
377
|
+
protected label: string;
|
|
378
|
+
protected target: "last";
|
|
379
|
+
}
|
|
380
|
+
|
|
326
381
|
declare class AnduinPopover extends LitElement {
|
|
327
382
|
static styles: CSSResult;
|
|
328
383
|
open: boolean;
|
|
@@ -736,6 +791,18 @@ export declare const Badge: ReactWebComponent<AnduinBadge, {}>;
|
|
|
736
791
|
|
|
737
792
|
export declare const BadgeCount: ReactWebComponent<AnduinBadgeCount, {}>;
|
|
738
793
|
|
|
794
|
+
/** Base for the jump-to-boundary buttons. */
|
|
795
|
+
declare class BoundaryButton extends LitElement {
|
|
796
|
+
static styles: CSSResult;
|
|
797
|
+
disabled: boolean;
|
|
798
|
+
protected icon: string;
|
|
799
|
+
protected label: string;
|
|
800
|
+
protected target: 'first' | 'last';
|
|
801
|
+
connectedCallback(): void;
|
|
802
|
+
private onClick;
|
|
803
|
+
render(): TemplateResult<1>;
|
|
804
|
+
}
|
|
805
|
+
|
|
739
806
|
export declare const Button: ReactWebComponent<AnduinButton, {}>;
|
|
740
807
|
|
|
741
808
|
declare type ButtonAppearance = 'filled' | 'outlined' | 'plain' | 'text';
|
|
@@ -853,6 +920,17 @@ export declare const NavigationItem: ReactWebComponent<AnduinNavigationItem, {}>
|
|
|
853
920
|
|
|
854
921
|
declare type NavigationTheme = 'light' | 'dark';
|
|
855
922
|
|
|
923
|
+
export declare const Pagination: ReactWebComponent<AnduinPagination, {
|
|
924
|
+
onValueChange: string;
|
|
925
|
+
}>;
|
|
926
|
+
|
|
927
|
+
/** Fired when a page is requested. `event.detail` is the target page number. */
|
|
928
|
+
export declare const PAGINATION_CHANGE = "anduin-pagination:change";
|
|
929
|
+
|
|
930
|
+
export declare const PaginationFirstPage: ReactWebComponent<AnduinPaginationFirstPage, {}>;
|
|
931
|
+
|
|
932
|
+
export declare const PaginationLastPage: ReactWebComponent<AnduinPaginationLastPage, {}>;
|
|
933
|
+
|
|
856
934
|
export declare const Popover: ReactWebComponent<AnduinPopover, {}>;
|
|
857
935
|
|
|
858
936
|
export declare const PopoverClose: ReactWebComponent<AnduinPopoverClose, {}>;
|
package/dist/react.js
CHANGED
|
@@ -1,180 +1,219 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { A as v, a as G, b as _, c as b, d as L, e as S, a5 as R, f, g as I, h as O, a6 as P, a7 as h, i as w, j as D, a8 as M, k as H, l as F, m as k, n as y, o as z, p as U, q as W, r as x, ad as B, ac as V, s as K, t as j, u as X, v as q, af as J, ag as Z, w as Q, x as Y, ah as $, y as ee, z as ae, aj as ne, B as te, C as se, D as oe, E as ie, F as le, G as re, am as de, H as ue, an as ce, I as ge, ao as me, J as Ce, K as Ne, L as Ae, M as pe, N as Ee, O as Te, aq as ve, ar as Ge, ap as _e, P as be, as as Le, Q as Se, R as Re, S as fe, at as Ie, T as Oe, U as Pe, V as he, aw as we, W as De, ax as Me, X as He, Y as Fe, Z as ke, ay as ye, _ as ze, aB as Ue, aC as We, az as xe, $ as Be, a0 as Ve, a1 as Ke, a2 as je, a3 as Xe, aJ as qe } from "./anduin-pagination-Dym6znEk.js";
|
|
3
|
+
import { ae as sn } from "./anduin-pagination-Dym6znEk.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license
|
|
6
|
+
* Copyright 2018 Google LLC
|
|
7
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
|
+
*/
|
|
9
|
+
const Je = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), p = /* @__PURE__ */ new WeakMap(), E = (o, c, d, g, m) => {
|
|
10
|
+
const C = m == null ? void 0 : m[c];
|
|
11
|
+
C === void 0 ? (o[c] = d, d == null && c in HTMLElement.prototype && o.removeAttribute(c)) : d !== g && ((u, l, r) => {
|
|
12
|
+
let i = p.get(u);
|
|
13
|
+
i === void 0 && p.set(u, i = /* @__PURE__ */ new Map());
|
|
14
|
+
let t = i.get(l);
|
|
15
|
+
r !== void 0 ? t === void 0 ? (i.set(l, t = { handleEvent: r }), u.addEventListener(l, t)) : t.handleEvent = r : t !== void 0 && (i.delete(l), u.removeEventListener(l, t));
|
|
16
|
+
})(o, C, d);
|
|
17
|
+
}, a = ({ react: o, tagName: c, elementClass: d, events: g, displayName: m }) => {
|
|
18
|
+
const C = new Set(Object.keys(g ?? {})), u = o.forwardRef(((l, r) => {
|
|
19
|
+
const i = o.useRef(/* @__PURE__ */ new Map()), t = o.useRef(null), N = {}, A = {};
|
|
20
|
+
for (const [n, s] of Object.entries(l)) Je.has(n) ? N[n === "className" ? "class" : n] = s : C.has(n) || n in d.prototype ? A[n] = s : N[n] = s;
|
|
21
|
+
return o.useLayoutEffect((() => {
|
|
22
|
+
if (t.current === null) return;
|
|
23
|
+
const n = /* @__PURE__ */ new Map();
|
|
24
|
+
for (const s in A) E(t.current, s, l[s], i.current.get(s), g), i.current.delete(s), n.set(s, l[s]);
|
|
25
|
+
for (const [s, T] of i.current) E(t.current, s, void 0, T, g);
|
|
26
|
+
i.current = n;
|
|
27
|
+
})), o.useLayoutEffect((() => {
|
|
28
|
+
var n;
|
|
29
|
+
(n = t.current) == null || n.removeAttribute("defer-hydration");
|
|
30
|
+
}), []), N.suppressHydrationWarning = !0, o.createElement(c, { ...N, ref: o.useCallback(((n) => {
|
|
31
|
+
t.current = n, typeof r == "function" ? r(n) : r !== null && (r.current = n);
|
|
32
|
+
}), [r]) });
|
|
33
|
+
}));
|
|
34
|
+
return u.displayName = m ?? d.name, u;
|
|
35
|
+
}, Ye = a({ react: e, tagName: "anduin-spinner", elementClass: Ee }), $e = a({ react: e, tagName: "anduin-sparkle-spinner", elementClass: pe }), ea = a({ react: e, tagName: "anduin-icon", elementClass: W }), aa = a({ react: e, tagName: "anduin-badge", elementClass: G }), na = a({ react: e, tagName: "anduin-badge-count", elementClass: _ }), ta = a({ react: e, tagName: "anduin-button", elementClass: b }), sa = a({ react: e, tagName: "anduin-callout", elementClass: L }), oa = a({ react: e, tagName: "anduin-divider", elementClass: f }), ia = a({ react: e, tagName: "anduin-dot", elementClass: I }), la = a({ react: e, tagName: "anduin-progress", elementClass: le }), ra = a({ react: e, tagName: "anduin-skeleton", elementClass: Ae }), da = a({ react: e, tagName: "anduin-loading-state", elementClass: K }), ua = a({ react: e, tagName: "anduin-field", elementClass: H }), ca = a({ react: e, tagName: "anduin-field-label", elementClass: z }), ga = a({ react: e, tagName: "anduin-field-description", elementClass: F }), ma = a({ react: e, tagName: "anduin-field-error", elementClass: k }), Ca = a({ react: e, tagName: "anduin-field-group", elementClass: y }), Na = a({
|
|
6
36
|
react: e,
|
|
7
37
|
tagName: "anduin-radio",
|
|
8
|
-
elementClass:
|
|
9
|
-
events: { onChange:
|
|
10
|
-
}),
|
|
38
|
+
elementClass: re,
|
|
39
|
+
events: { onChange: de }
|
|
40
|
+
}), Aa = a({
|
|
11
41
|
react: e,
|
|
12
42
|
tagName: "anduin-radio-group",
|
|
13
|
-
elementClass:
|
|
14
|
-
events: { onChange:
|
|
15
|
-
}),
|
|
43
|
+
elementClass: ue,
|
|
44
|
+
events: { onChange: ce }
|
|
45
|
+
}), pa = a({
|
|
16
46
|
react: e,
|
|
17
47
|
tagName: "anduin-checkbox",
|
|
18
|
-
elementClass:
|
|
19
|
-
events: { onChange:
|
|
20
|
-
}),
|
|
48
|
+
elementClass: S,
|
|
49
|
+
events: { onChange: R }
|
|
50
|
+
}), Ea = a({
|
|
21
51
|
react: e,
|
|
22
52
|
tagName: "anduin-input",
|
|
23
|
-
elementClass:
|
|
24
|
-
events: { onChange:
|
|
25
|
-
}),
|
|
53
|
+
elementClass: x,
|
|
54
|
+
events: { onChange: V, onClear: B }
|
|
55
|
+
}), Ta = a({
|
|
26
56
|
react: e,
|
|
27
57
|
tagName: "anduin-textarea",
|
|
28
|
-
elementClass:
|
|
29
|
-
events: { onChange:
|
|
30
|
-
}),
|
|
58
|
+
elementClass: De,
|
|
59
|
+
events: { onChange: Me }
|
|
60
|
+
}), va = a({ react: e, tagName: "anduin-popover", elementClass: oe }), Ga = a({ react: e, tagName: "anduin-popover-close", elementClass: ie }), _a = a({ react: e, tagName: "anduin-menu", elementClass: j }), ba = a({
|
|
31
61
|
react: e,
|
|
32
62
|
tagName: "anduin-menu-item",
|
|
33
|
-
elementClass:
|
|
34
|
-
}),
|
|
63
|
+
elementClass: X
|
|
64
|
+
}), La = a({
|
|
35
65
|
react: e,
|
|
36
66
|
tagName: "anduin-modal",
|
|
37
|
-
elementClass:
|
|
38
|
-
events: { onClose:
|
|
39
|
-
}),
|
|
67
|
+
elementClass: q,
|
|
68
|
+
events: { onClose: Z, onAfterClose: J }
|
|
69
|
+
}), Sa = a({ react: e, tagName: "anduin-modal-close", elementClass: Q }), Ra = a({
|
|
40
70
|
react: e,
|
|
41
71
|
tagName: "anduin-tabs",
|
|
42
|
-
elementClass:
|
|
43
|
-
events: { onChange:
|
|
44
|
-
}),
|
|
72
|
+
elementClass: fe,
|
|
73
|
+
events: { onChange: Ie }
|
|
74
|
+
}), fa = a({ react: e, tagName: "anduin-tabs-list", elementClass: Oe }), Ia = a({ react: e, tagName: "anduin-tab-trigger", elementClass: Re }), Oa = a({ react: e, tagName: "anduin-tab-content", elementClass: Se }), Pa = a({ react: e, tagName: "anduin-tag", elementClass: Pe }), ha = a({
|
|
45
75
|
react: e,
|
|
46
76
|
tagName: "anduin-tag-close",
|
|
47
|
-
elementClass:
|
|
48
|
-
events: { onClick:
|
|
49
|
-
}),
|
|
77
|
+
elementClass: he,
|
|
78
|
+
events: { onClick: we }
|
|
79
|
+
}), wa = a({
|
|
50
80
|
react: e,
|
|
51
81
|
tagName: "anduin-toggle-group",
|
|
52
|
-
elementClass:
|
|
53
|
-
events: { onChange:
|
|
54
|
-
}),
|
|
82
|
+
elementClass: ke,
|
|
83
|
+
events: { onChange: ye }
|
|
84
|
+
}), Da = a({
|
|
55
85
|
react: e,
|
|
56
86
|
tagName: "anduin-toggle-group-item",
|
|
57
|
-
elementClass:
|
|
58
|
-
events: { onChange:
|
|
59
|
-
}),
|
|
87
|
+
elementClass: ze,
|
|
88
|
+
events: { onChange: xe, onSelect: We, onDeselect: Ue }
|
|
89
|
+
}), Ma = a({ react: e, tagName: "anduin-tooltip", elementClass: Be }), Ha = a({ react: e, tagName: "anduin-tooltip-trigger", elementClass: Ke }), Fa = a({ react: e, tagName: "anduin-tooltip-content", elementClass: Ve }), ka = a({ react: e, tagName: "anduin-well", elementClass: je }), ya = a({
|
|
60
90
|
react: e,
|
|
61
91
|
tagName: "anduin-well-close",
|
|
62
|
-
elementClass:
|
|
63
|
-
events: { onClick:
|
|
64
|
-
}),
|
|
92
|
+
elementClass: Xe,
|
|
93
|
+
events: { onClick: qe }
|
|
94
|
+
}), za = a({ react: e, tagName: "anduin-avatar", elementClass: v }), Ua = a({ react: e, tagName: "anduin-file-icon", elementClass: U }), Wa = a({ react: e, tagName: "anduin-toast", elementClass: He }), xa = a({ react: e, tagName: "anduin-toaster", elementClass: Fe }), Ba = a({
|
|
65
95
|
react: e,
|
|
66
96
|
tagName: "anduin-dropdown",
|
|
67
|
-
elementClass:
|
|
68
|
-
events: { onChange:
|
|
69
|
-
}),
|
|
97
|
+
elementClass: D,
|
|
98
|
+
events: { onChange: M }
|
|
99
|
+
}), Va = a({
|
|
70
100
|
react: e,
|
|
71
101
|
tagName: "anduin-drawer",
|
|
72
|
-
elementClass:
|
|
73
|
-
events: { onClose:
|
|
74
|
-
}),
|
|
102
|
+
elementClass: O,
|
|
103
|
+
events: { onClose: h, onAfterClose: P }
|
|
104
|
+
}), Ka = a({ react: e, tagName: "anduin-drawer-close", elementClass: w }), ja = a({
|
|
75
105
|
react: e,
|
|
76
106
|
tagName: "anduin-switcher",
|
|
77
|
-
elementClass:
|
|
78
|
-
events: { onChange:
|
|
79
|
-
}),
|
|
107
|
+
elementClass: be,
|
|
108
|
+
events: { onChange: Le }
|
|
109
|
+
}), Xa = a({
|
|
80
110
|
react: e,
|
|
81
111
|
tagName: "anduin-suggestion",
|
|
82
|
-
elementClass:
|
|
83
|
-
events: { onChange:
|
|
84
|
-
}),
|
|
112
|
+
elementClass: Te,
|
|
113
|
+
events: { onChange: _e, onSelect: Ge, onClear: ve }
|
|
114
|
+
}), qa = a({
|
|
85
115
|
react: e,
|
|
86
116
|
tagName: "anduin-navigation",
|
|
87
|
-
elementClass:
|
|
88
|
-
events: { onChange:
|
|
89
|
-
}),
|
|
117
|
+
elementClass: Y,
|
|
118
|
+
events: { onChange: $ }
|
|
119
|
+
}), Ja = a({
|
|
90
120
|
react: e,
|
|
91
121
|
tagName: "anduin-navigation-item",
|
|
92
|
-
elementClass:
|
|
93
|
-
}),
|
|
122
|
+
elementClass: ee
|
|
123
|
+
}), Za = a({ react: e, tagName: "anduin-resizable-panel-group", elementClass: Ne }), Qa = a({ react: e, tagName: "anduin-resizable-panel", elementClass: Ce }), Ya = a({
|
|
94
124
|
react: e,
|
|
95
125
|
tagName: "anduin-resizable-handle",
|
|
96
|
-
elementClass:
|
|
97
|
-
events: { onResize:
|
|
98
|
-
})
|
|
126
|
+
elementClass: ge,
|
|
127
|
+
events: { onResize: me }
|
|
128
|
+
}), $a = a({
|
|
129
|
+
react: e,
|
|
130
|
+
tagName: "anduin-pagination",
|
|
131
|
+
elementClass: ae,
|
|
132
|
+
events: { onValueChange: ne }
|
|
133
|
+
}), en = a({ react: e, tagName: "anduin-pagination-first-page", elementClass: te }), an = a({ react: e, tagName: "anduin-pagination-last-page", elementClass: se });
|
|
99
134
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
$
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
135
|
+
za as Avatar,
|
|
136
|
+
aa as Badge,
|
|
137
|
+
na as BadgeCount,
|
|
138
|
+
ta as Button,
|
|
139
|
+
R as CHECKBOX_CHANGE,
|
|
140
|
+
sa as Callout,
|
|
141
|
+
pa as Checkbox,
|
|
142
|
+
P as DRAWER_AFTER_CLOSE_EVENT,
|
|
143
|
+
h as DRAWER_CLOSE_EVENT,
|
|
144
|
+
M as DROPDOWN_CHANGE,
|
|
145
|
+
oa as Divider,
|
|
146
|
+
ia as Dot,
|
|
147
|
+
Va as Drawer,
|
|
148
|
+
Ka as DrawerClose,
|
|
149
|
+
Ba as Dropdown,
|
|
150
|
+
ua as Field,
|
|
151
|
+
ga as FieldDescription,
|
|
152
|
+
ma as FieldError,
|
|
153
|
+
Ca as FieldGroup,
|
|
154
|
+
ca as FieldLabel,
|
|
155
|
+
Ua as FileIcon,
|
|
156
|
+
V as INPUT_CHANGE,
|
|
157
|
+
B as INPUT_CLEAR,
|
|
158
|
+
ea as Icon,
|
|
159
|
+
Ea as Input,
|
|
160
|
+
da as LoadingState,
|
|
161
|
+
sn as MENU_ITEM_CLICK,
|
|
162
|
+
J as MODAL_AFTER_CLOSE_EVENT,
|
|
163
|
+
Z as MODAL_CLOSE_EVENT,
|
|
164
|
+
_a as Menu,
|
|
165
|
+
ba as MenuItem,
|
|
166
|
+
La as Modal,
|
|
167
|
+
Sa as ModalClose,
|
|
168
|
+
$ as NAVIGATION_CHANGE,
|
|
169
|
+
qa as Navigation,
|
|
170
|
+
Ja as NavigationItem,
|
|
171
|
+
ne as PAGINATION_CHANGE,
|
|
172
|
+
$a as Pagination,
|
|
173
|
+
en as PaginationFirstPage,
|
|
174
|
+
an as PaginationLastPage,
|
|
175
|
+
va as Popover,
|
|
176
|
+
Ga as PopoverClose,
|
|
177
|
+
la as Progress,
|
|
178
|
+
de as RADIO_CHANGE,
|
|
179
|
+
ce as RADIO_GROUP_CHANGE,
|
|
180
|
+
me as RESIZE_EVENT,
|
|
181
|
+
Na as Radio,
|
|
182
|
+
Aa as RadioGroup,
|
|
183
|
+
Ya as ResizableHandle,
|
|
184
|
+
Qa as ResizablePanel,
|
|
185
|
+
Za as ResizablePanelGroup,
|
|
186
|
+
_e as SUGGESTION_CHANGE,
|
|
187
|
+
ve as SUGGESTION_CLEAR,
|
|
188
|
+
Ge as SUGGESTION_SELECT,
|
|
189
|
+
Le as SWITCHER_CHANGE,
|
|
190
|
+
ra as Skeleton,
|
|
191
|
+
$e as SparkleSpinner,
|
|
192
|
+
Ye as Spinner,
|
|
193
|
+
Xa as Suggestion,
|
|
194
|
+
ja as Switcher,
|
|
195
|
+
Ie as TAB_CHANGE,
|
|
196
|
+
we as TAG_CLOSE_CLICK,
|
|
197
|
+
Me as TEXTAREA_CHANGE,
|
|
198
|
+
ye as TOGGLE_GROUP_CHANGE,
|
|
199
|
+
xe as TOGGLE_GROUP_ITEM_CHANGE,
|
|
200
|
+
Ue as TOGGLE_GROUP_ITEM_DESELECT,
|
|
201
|
+
We as TOGGLE_GROUP_ITEM_SELECT,
|
|
202
|
+
Oa as TabContent,
|
|
203
|
+
Ia as TabTrigger,
|
|
204
|
+
Ra as Tabs,
|
|
205
|
+
fa as TabsList,
|
|
206
|
+
Pa as Tag,
|
|
207
|
+
ha as TagClose,
|
|
208
|
+
Ta as Textarea,
|
|
209
|
+
Wa as Toast,
|
|
210
|
+
xa as Toaster,
|
|
211
|
+
wa as ToggleGroup,
|
|
212
|
+
Da as ToggleGroupItem,
|
|
213
|
+
Ma as Tooltip,
|
|
214
|
+
Fa as TooltipContent,
|
|
215
|
+
Ha as TooltipTrigger,
|
|
216
|
+
qe as WELL_CLOSE_CLICK,
|
|
217
|
+
ka as Well,
|
|
218
|
+
ya as WellClose
|
|
180
219
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duyluonganduin/acl-web-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/acl-web-components.cjs",
|
|
6
6
|
"module": "./dist/acl-web-components.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"default": "./dist/tailwind-theme.css"
|
|
25
25
|
},
|
|
26
26
|
"./react": {
|
|
27
|
+
"types": "./dist/react.d.ts",
|
|
27
28
|
"import": "./dist/react.js",
|
|
28
|
-
"require": "./dist/react.cjs"
|
|
29
|
-
"types": "./dist/react.d.ts"
|
|
29
|
+
"require": "./dist/react.cjs"
|
|
30
30
|
},
|
|
31
31
|
"./jsx": {
|
|
32
32
|
"types": "./dist/jsx.d.ts"
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"build-storybook": "storybook build"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
+
"@lit/react": "^1.0.8",
|
|
60
61
|
"@storybook/addon-essentials": "^8.6.17",
|
|
61
62
|
"@storybook/blocks": "^8.5.0",
|
|
62
63
|
"@storybook/web-components-vite": "^8.5.0",
|
|
@@ -69,8 +70,5 @@
|
|
|
69
70
|
"typescript": "^5.7.0",
|
|
70
71
|
"vite": "^6.1.0",
|
|
71
72
|
"vite-plugin-dts": "^4.4.0"
|
|
72
|
-
},
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"@lit/react": "^1.0.8"
|
|
75
73
|
}
|
|
76
74
|
}
|