@agnos-ui/core
Advanced tools
Comparing version 0.3.1 to 0.4.0-next.0
@@ -14,3 +14,3 @@ import type { TransitionFn } from '../../services/transitions/baseTransitions'; | ||
*/ | ||
onShown: (itemId: string) => void; | ||
onItemShown: (itemId: string) => void; | ||
/** | ||
@@ -21,32 +21,9 @@ * An event fired when an item is hidden. | ||
*/ | ||
onHidden: (itemId: string) => void; | ||
onItemHidden: (itemId: string) => void; | ||
/** | ||
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemId: string; | ||
/** | ||
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemDestroyOnHide: boolean; | ||
/** | ||
* If `true`, the accordion-item will be disabled. | ||
* It will not react to user's clicks, but still will be possible to toggle programmatically. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemDisabled: boolean; | ||
/** | ||
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed). | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemVisible: boolean; | ||
/** | ||
* If `true`, accordion-item will be animated. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
@@ -56,61 +33,27 @@ itemAnimated: boolean; | ||
* The transition to use for the accordion-item body-container when the accordion-item is toggled. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemTransition: TransitionFn; | ||
/** | ||
* An event fired when an item is shown. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
onItemShown: () => void; | ||
/** | ||
* An event fired when an item is hidden. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
onItemHidden: () => void; | ||
/** | ||
* An event fired when the `visible` value changes. | ||
* | ||
* Event payload is the new value of visible. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
onItemVisibleChange: (visible: boolean) => void; | ||
/** | ||
* CSS classes to add on the accordion-item DOM element. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemClass: string; | ||
itemClassName: string; | ||
/** | ||
* CSS classes to add on the accordion-item header DOM element. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemHeaderClass: string; | ||
itemHeaderClassName: string; | ||
/** | ||
* CSS classes to add on the accordion-item toggle button DOM element. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemButtonClass: string; | ||
itemButtonClassName: string; | ||
/** | ||
* CSS classes to add on the accordion-item body container DOM element. | ||
* The accordion-item body container is the DOM element on what the itemTransition is applied. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemBodyContainerClass: string; | ||
itemBodyContainerClassName: string; | ||
/** | ||
* CSS classes to add on the accordion-item body DOM element. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
itemBodyClass: string; | ||
itemBodyClassName: string; | ||
/** | ||
* The html tag to use for the accordion-item-header. | ||
* | ||
* It is a prop of the accordion-item. | ||
*/ | ||
@@ -123,3 +66,3 @@ itemHeadingTag: string; | ||
*/ | ||
itemsWidget: AccordionItemWidget[]; | ||
itemWidgets: AccordionItemWidget[]; | ||
} | ||
@@ -209,2 +152,10 @@ export interface AccordionApi { | ||
/** | ||
* Directive to apply the itemTransition | ||
*/ | ||
transitionDirective: Directive; | ||
/** | ||
* Directive to apply aria attributes to the expanded body panel | ||
*/ | ||
bodyContainerAttrsDirective: Directive; | ||
/** | ||
* Directive to be put on the accordion-item body container. It will handle the animation. | ||
@@ -216,9 +167,9 @@ */ | ||
*/ | ||
accordionItemDirective: Directive; | ||
itemDirective: Directive; | ||
} | ||
export interface AccordionItemCommonPropsAndState { | ||
export interface AccordionItemCommonPropsAndState extends WidgetsCommonPropsAndState { | ||
/** | ||
* If `true`, the accordion-item will be visible (expanded). Otherwise, it will be hidden (collapsed). | ||
*/ | ||
itemVisible: boolean; | ||
visible: boolean; | ||
/** | ||
@@ -228,19 +179,15 @@ * If `true`, the accordion-item will be disabled. | ||
*/ | ||
itemDisabled: boolean; | ||
disabled: boolean; | ||
/** | ||
* The id of the accordion-item. It can be used for controlling the accordion-item via the accordion api. | ||
*/ | ||
itemId: string; | ||
id: string; | ||
/** | ||
* CSS classes to add on the accordion-item DOM element. | ||
*/ | ||
itemClass: string; | ||
/** | ||
* CSS classes to add on the accordion-item header DOM element. | ||
*/ | ||
itemHeaderClass: string; | ||
headerClassName: string; | ||
/** | ||
* CSS classes to add on the accordion-item collapse DOM element. | ||
*/ | ||
itemButtonClass: string; | ||
buttonClassName: string; | ||
/** | ||
@@ -250,11 +197,11 @@ * CSS classes to add on the accordion-item body container DOM element. | ||
*/ | ||
itemBodyContainerClass: string; | ||
bodyContainerClassName: string; | ||
/** | ||
* CSS classes to add on the accordion-item body DOM element. | ||
*/ | ||
itemBodyClass: string; | ||
bodyClassName: string; | ||
/** | ||
* The html tag to use for the accordion-item-header. | ||
*/ | ||
itemHeadingTag: string; | ||
headingTag: string; | ||
} | ||
@@ -265,19 +212,19 @@ export interface AccordionItemProps extends AccordionItemCommonPropsAndState { | ||
*/ | ||
itemAnimated: boolean; | ||
animated: boolean; | ||
/** | ||
* The transition to use for the accordion-item body-container when the accordion-item is toggled. | ||
*/ | ||
itemTransition: TransitionFn; | ||
transition: TransitionFn; | ||
/** | ||
* If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise. | ||
*/ | ||
itemDestroyOnHide: boolean; | ||
destroyOnHide: boolean; | ||
/** | ||
* An event fired when an item is shown. | ||
*/ | ||
onItemShown: () => void; | ||
onShown: () => void; | ||
/** | ||
* An event fired when an item is hidden. | ||
*/ | ||
onItemHidden: () => void; | ||
onHidden: () => void; | ||
/** | ||
@@ -288,3 +235,3 @@ * An event fired when the `visible` value changes. | ||
*/ | ||
onItemVisibleChange: (visible: boolean) => void; | ||
onVisibleChange: (visible: boolean) => void; | ||
} | ||
@@ -294,3 +241,3 @@ export interface AccordionItemState extends AccordionItemCommonPropsAndState { | ||
* If `true` the content of the accordion-item collapse should be in DOM. Its value depends on the | ||
* value of the `itemVisible` and `itemDestroyOnHide`. | ||
* value of the `visible` and `destroyOnHide`. | ||
*/ | ||
@@ -297,0 +244,0 @@ shouldBeInDOM: boolean; |
@@ -1,2 +0,2 @@ | ||
import { a, c, f, g } from "../../accordion-BaWN0_n-.js"; | ||
import { a, c, f, g } from "../../accordion-BnaSamoQ.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ a as createAccordion, |
@@ -41,3 +41,3 @@ import type { TransitionFn } from '../../services/transitions/baseTransitions'; | ||
* | ||
* Depending on the value of {@link CommonAlertProps.animatedOnInit}, the animation can be optionally skipped during the showing process. | ||
* Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process. | ||
*/ | ||
@@ -44,0 +44,0 @@ transition: TransitionFn; |
@@ -1,3 +0,3 @@ | ||
import { c, a, d, g } from "../../common-DRdsw5m8.js"; | ||
import { c as c2, g as g2 } from "../../alert-Dlf-BV98.js"; | ||
import { c, a, d, g } from "../../common-BCEqowKw.js"; | ||
import { c as c2, g as g2 } from "../../alert-8ilqhLst.js"; | ||
export { | ||
@@ -4,0 +4,0 @@ c as commonAlertConfigValidator, |
@@ -1,2 +0,2 @@ | ||
import { c, g, a, m } from "../../modal-BI2qUu1M.js"; | ||
import { c, g, a, m } from "../../modal-CeTI4jxI.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createModal, |
@@ -17,3 +17,3 @@ import type { WidgetsCommonPropsAndState } from '../commonProps'; | ||
*/ | ||
export interface ModalCommonPropsAndState<Data> extends WidgetsCommonPropsAndState { | ||
export interface ModalCommonPropsAndState extends WidgetsCommonPropsAndState { | ||
/** | ||
@@ -41,6 +41,2 @@ * Value of the aria-label attribute to put on the close button. | ||
visible: boolean; | ||
/** | ||
* Data to use in content slots | ||
*/ | ||
contentData: Data; | ||
} | ||
@@ -66,3 +62,3 @@ /** | ||
*/ | ||
export interface ModalProps<Data> extends ModalCommonPropsAndState<Data> { | ||
export interface ModalProps extends ModalCommonPropsAndState { | ||
/** | ||
@@ -113,3 +109,3 @@ * Whether the modal and its backdrop (if present) should be animated when shown or hidden. | ||
*/ | ||
export interface ModalState<Data> extends ModalCommonPropsAndState<Data> { | ||
export interface ModalState extends ModalCommonPropsAndState { | ||
/** | ||
@@ -136,3 +132,3 @@ * Whether the backdrop is fully hidden. This can be true either because {@link ModalProps.backdrop|backdrop} is false or | ||
*/ | ||
export interface ModalApi<Data> { | ||
export interface ModalApi { | ||
/** | ||
@@ -154,3 +150,3 @@ * Closes the modal with the given result. | ||
*/ | ||
patch: ModalWidget<Data>['patch']; | ||
patch: ModalWidget['patch']; | ||
} | ||
@@ -199,2 +195,6 @@ /** | ||
closeButtonDirective: Directive; | ||
/** | ||
* Directive to apply to the dialog element when using the native [HTMLDialogElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement) | ||
*/ | ||
dialogDirective: Directive; | ||
} | ||
@@ -204,3 +204,3 @@ /** | ||
*/ | ||
export type ModalWidget<Data> = Widget<ModalProps<Data>, ModalState<Data>, ModalApi<Data>, ModalActions, ModalDirectives>; | ||
export type ModalWidget = Widget<ModalProps, ModalState, ModalApi, ModalActions, ModalDirectives>; | ||
/** | ||
@@ -274,6 +274,2 @@ * Returns a copy of the default modal config. | ||
visible: boolean; | ||
/** | ||
* Data to use in content slots | ||
*/ | ||
contentData: any; | ||
className: string; | ||
@@ -286,2 +282,2 @@ }; | ||
*/ | ||
export declare function createModal<Data>(config$?: PropsConfig<ModalProps<Data>>): ModalWidget<Data>; | ||
export declare function createModal(config$?: PropsConfig<ModalProps>): ModalWidget; |
@@ -1,2 +0,2 @@ | ||
import { c, g } from "../../pagination--GkwduJn.js"; | ||
import { c, g } from "../../pagination-BpPHKQsH.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createPagination, |
@@ -1,2 +0,2 @@ | ||
import { c, g } from "../../progressbar-DuRX7_my.js"; | ||
import { c, g } from "../../progressbar-BybOg5FE.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createProgressbar, |
@@ -1,2 +0,2 @@ | ||
import { c, g } from "../../rating-BR5wD7y2.js"; | ||
import { c, g } from "../../rating-D6Tv_4Vx.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createRating, |
@@ -1,2 +0,2 @@ | ||
import { c, d, g } from "../../select-BCs6HQWn.js"; | ||
import { c, d, g } from "../../select-BS0mh7Qk.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createSelect, |
@@ -48,7 +48,7 @@ import type { Placement } from '@floating-ui/dom'; | ||
} | ||
export interface SelectProps<T> extends SelectCommonPropsAndState<T> { | ||
export interface SelectProps<Item> extends SelectCommonPropsAndState<Item> { | ||
/** | ||
* List of available items for the dropdown | ||
*/ | ||
items: T[]; | ||
items: Item[]; | ||
/** | ||
@@ -63,3 +63,3 @@ * List of allowed placements for the dropdown. | ||
*/ | ||
itemIdFn(item: T): string; | ||
itemIdFn(item: Item): string; | ||
/** | ||
@@ -84,3 +84,3 @@ * Retrieves navigable elements within an HTML element containing badges and the input. | ||
*/ | ||
onSelectedChange(selected: T[]): void; | ||
onSelectedChange(selected: Item[]): void; | ||
} | ||
@@ -110,3 +110,2 @@ /** | ||
/** | ||
/** | ||
* List of selected items to be display | ||
@@ -113,0 +112,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
import { c, g } from "../../slider-CA_fszn7.js"; | ||
import { c, g } from "../../slider-ByDkbyr1.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createSlider, |
@@ -1,2 +0,2 @@ | ||
import { c, g } from "../../toast-8tWp6x89.js"; | ||
import { c, g } from "../../toast-DN0HwUbs.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ c as createToast, |
@@ -1,2 +0,1 @@ | ||
import type { ExtendWidgetAdaptSlotWidgetProps, ExtendWidgetInterfaces } from '../../services/extendWidget'; | ||
import type { Directive, PropsConfig, Widget } from '../../types'; | ||
@@ -28,9 +27,9 @@ import type { CommonAlertApi, CommonAlertDirectives, CommonAlertProps, CommonAlertState } from '../alert/common'; | ||
} | ||
export interface ToastState extends ExtendWidgetAdaptSlotWidgetProps<CommonAlertState, ToastExtraProps, ExtraDirectives> { | ||
export interface ToastState extends CommonAlertState, ToastExtraProps { | ||
} | ||
export interface ToastProps extends ExtendWidgetAdaptSlotWidgetProps<CommonAlertProps, ToastExtraProps, ExtraDirectives> { | ||
export interface ToastProps extends CommonAlertProps, ToastExtraProps { | ||
} | ||
export interface ToastApi extends CommonAlertApi { | ||
} | ||
export interface ToastDirectives extends ExtendWidgetInterfaces<CommonAlertDirectives, ExtraDirectives> { | ||
export interface ToastDirectives extends CommonAlertDirectives, ExtraDirectives { | ||
} | ||
@@ -37,0 +36,0 @@ export type ToastWidget = Widget<ToastProps, ToastState, ToastApi, object, ToastDirectives>; |
@@ -49,3 +49,3 @@ import type { ReadableSignal, WritableSignal } from '@amadeus-it-group/tansu'; | ||
export declare const createWidgetsConfig: <T>(parent$?: WidgetsConfigStore<T> | undefined, adaptParentConfig?: (config: Partial2Levels<T>) => Partial2Levels<T>) => WidgetsConfigStore<T>; | ||
export interface WidgetsConfig { | ||
export type WidgetsConfig = { | ||
/** | ||
@@ -66,3 +66,3 @@ * the pagination widget config | ||
*/ | ||
modal: ModalProps<any>; | ||
modal: ModalProps; | ||
/** | ||
@@ -88,2 +88,2 @@ * the alert widget config | ||
toast: ToastProps; | ||
} | ||
}; |
@@ -10,6 +10,4 @@ import { writable, computed, asWritable } from "@amadeus-it-group/tansu"; | ||
for (const key of Object.keys(source)) { | ||
if (!Object.prototype.hasOwnProperty.call(source, key)) | ||
continue; | ||
if (key === "__proto__" || key === "constructor") | ||
continue; | ||
if (!Object.prototype.hasOwnProperty.call(source, key)) continue; | ||
if (key === "__proto__" || key === "constructor") continue; | ||
destination[key] = mergeInto(destination[key], source[key], levels - 1); | ||
@@ -16,0 +14,0 @@ } |
22
index.js
import { INVALID_VALUE, toSlotContextWidget } from "./types.js"; | ||
import { a, c, f, g } from "./accordion-BaWN0_n-.js"; | ||
import { c as c2, a as a2, d, g as g2 } from "./common-DRdsw5m8.js"; | ||
import { c as c3, g as g3 } from "./alert-Dlf-BV98.js"; | ||
import { c as c4, g as g4, a as a3, m } from "./modal-BI2qUu1M.js"; | ||
import { c as c5, g as g5 } from "./pagination--GkwduJn.js"; | ||
import { c as c6, g as g6 } from "./progressbar-DuRX7_my.js"; | ||
import { c as c7, g as g7 } from "./rating-BR5wD7y2.js"; | ||
import { c as c8, d as d2, g as g8 } from "./select-BCs6HQWn.js"; | ||
import { c as c9, g as g9 } from "./slider-CA_fszn7.js"; | ||
import { c as c10, g as g10 } from "./toast-8tWp6x89.js"; | ||
import { a, c, f, g } from "./accordion-BnaSamoQ.js"; | ||
import { c as c2, a as a2, d, g as g2 } from "./common-BCEqowKw.js"; | ||
import { c as c3, g as g3 } from "./alert-8ilqhLst.js"; | ||
import { c as c4, g as g4, a as a3, m } from "./modal-CeTI4jxI.js"; | ||
import { c as c5, g as g5 } from "./pagination-BpPHKQsH.js"; | ||
import { c as c6, g as g6 } from "./progressbar-BybOg5FE.js"; | ||
import { c as c7, g as g7 } from "./rating-D6Tv_4Vx.js"; | ||
import { c as c8, d as d2, g as g8 } from "./select-BS0mh7Qk.js"; | ||
import { c as c9, g as g9 } from "./slider-ByDkbyr1.js"; | ||
import { c as c10, g as g10 } from "./toast-DN0HwUbs.js"; | ||
import { createWidgetsConfig, mergeInto } from "./config.js"; | ||
@@ -25,3 +25,3 @@ import { extendWidgetProps } from "./services/extendWidget.js"; | ||
import { createSimpleClassTransition } from "./services/transitions/simpleClassTransition.js"; | ||
import { o, a as a4, c as c11, b, p, n, g as g11, j, f as f2, h, q, d as d3, e, i, m as m2, k, l, r, s } from "./directive-DCYlDznf.js"; | ||
import { o, a as a4, c as c11, b, p, n, g as g11, j, f as f2, h, q, d as d3, e, i, m as m2, k, l, r, s } from "./directive-3-8yr-ZK.js"; | ||
import { bindableDerived, bindableProp, createPatch, findChangedProperties, isStore, mergeConfigStores, normalizeConfigStores, stateStores, toReadableStore, toWritableStore, writableWithDefault, writablesForProps, writablesWithDefault } from "./utils/stores.js"; | ||
@@ -28,0 +28,0 @@ import { t, h as h2, c as c12, d as d4, f as f3, g as g12, a as a5, b as b2, e as e2 } from "./writables-DoU_XYTX.js"; |
{ | ||
"name": "@agnos-ui/core", | ||
"description": "Framework-agnostic headless widget library.", | ||
"version": "0.3.1", | ||
"version": "0.4.0-next.0", | ||
"type": "module", | ||
@@ -47,5 +47,5 @@ "main": "./index.cjs", | ||
"peerDependencies": { | ||
"@amadeus-it-group/tansu": "*", | ||
"@floating-ui/dom": "*", | ||
"esm-env": "*" | ||
"@amadeus-it-group/tansu": "^1.0.0", | ||
"@floating-ui/dom": "^1.6.5", | ||
"esm-env": "^1.0.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "sideEffects": false, |
@@ -1,2 +0,2 @@ | ||
import type { ConfigValidator, SlotContent, Widget, WidgetFactory, WidgetProps, WidgetSlotContext, WidgetState } from '../types'; | ||
import type { ConfigValidator, IsSlotContent, SlotContent, Widget, WidgetFactory, WidgetProps, WidgetSlotContext, WidgetState } from '../types'; | ||
/** | ||
@@ -17,4 +17,4 @@ * Type extending the original Widget props and state with ExtraProps | ||
*/ | ||
export type ExtendWidgetAdaptSlotWidgetProps<Props, ExtraProps extends object, ExtraDirectives extends object> = Omit<Props, `slot${string}`> & ExtraProps & { | ||
[K in keyof Props & `slot${string}`]: Props[K] extends SlotContent<infer U> ? SlotContent<ExtendWidgetAdaptSlotContentProps<U, ExtraProps, ExtraDirectives>> : Props[K]; | ||
export type ExtendWidgetAdaptSlotWidgetProps<Props, ExtraProps extends object, ExtraDirectives extends object> = ExtraProps & { | ||
[K in keyof Props]: IsSlotContent<Props[K]> extends SlotContent<infer U> ? SlotContent<ExtendWidgetAdaptSlotContentProps<U, ExtraProps, ExtraDirectives>> : Props[K]; | ||
}; | ||
@@ -21,0 +21,0 @@ /** |
import { computed, derived } from "@amadeus-it-group/tansu"; | ||
import { arrow, autoUpdate, computePosition } from "@floating-ui/dom"; | ||
import { j as createBrowserStoreDirective, k as mergeDirectives, d as directiveSubscribe } from "../directive-DCYlDznf.js"; | ||
import { j as createBrowserStoreDirective, k as mergeDirectives, d as directiveSubscribe } from "../directive-3-8yr-ZK.js"; | ||
import { p as promiseStoreToValueStore } from "../promise-CY2U8bTP.js"; | ||
@@ -5,0 +5,0 @@ import { writablesForProps, stateStores } from "../utils/stores.js"; |
import { readable, computed } from "@amadeus-it-group/tansu"; | ||
import { g as createBrowserStoreArrayDirective } from "../directive-DCYlDznf.js"; | ||
import { g as createBrowserStoreArrayDirective } from "../directive-3-8yr-ZK.js"; | ||
import { BROWSER } from "esm-env"; | ||
@@ -4,0 +4,0 @@ const evtFocusIn = "focusin"; |
import { readable } from "@amadeus-it-group/tansu"; | ||
import { BROWSER } from "esm-env"; | ||
import { u as addEvent } from "../directive-DCYlDznf.js"; | ||
import { u as addEvent } from "../directive-3-8yr-ZK.js"; | ||
const createMatchMedia = (query) => BROWSER ? readable(false, { | ||
@@ -5,0 +5,0 @@ onUse({ set }) { |
import { writable, computed } from "@amadeus-it-group/tansu"; | ||
import { r as registrationArray, y as computeCommonAncestor, b as browserDirective } from "../directive-DCYlDznf.js"; | ||
import { r as registrationArray, y as computeCommonAncestor, b as browserDirective } from "../directive-3-8yr-ZK.js"; | ||
const isInertOrInvisible = (element) => { | ||
@@ -4,0 +4,0 @@ let curElement = element; |
@@ -1,2 +0,2 @@ | ||
import { b as browserDirective } from "../directive-DCYlDznf.js"; | ||
import { b as browserDirective } from "../directive-3-8yr-ZK.js"; | ||
const portal = browserDirective((content, newArg) => { | ||
@@ -3,0 +3,0 @@ let arg; |
import { derived } from "@amadeus-it-group/tansu"; | ||
import { j as createBrowserStoreDirective } from "../directive-DCYlDznf.js"; | ||
import { j as createBrowserStoreDirective } from "../directive-3-8yr-ZK.js"; | ||
import { n as noop } from "../func-DR0n-ShK.js"; | ||
@@ -4,0 +4,0 @@ const createResizeObserver = () => { |
import { computed } from "@amadeus-it-group/tansu"; | ||
import { n as noop } from "../func-DR0n-ShK.js"; | ||
import { g as createBrowserStoreArrayDirective, k as mergeDirectives, d as directiveSubscribe } from "../directive-DCYlDznf.js"; | ||
import { g as createBrowserStoreArrayDirective, k as mergeDirectives, d as directiveSubscribe } from "../directive-3-8yr-ZK.js"; | ||
const internalSetSiblingsInert = (element) => { | ||
@@ -5,0 +5,0 @@ const inertValues = /* @__PURE__ */ new Map(); |
@@ -6,3 +6,3 @@ import { computed, writable, derived, batch } from "@amadeus-it-group/tansu"; | ||
import { writablesForProps, bindableDerived, stateStores } from "../../utils/stores.js"; | ||
import { h as createStoreDirective, k as mergeDirectives, d as directiveSubscribe, e as directiveUpdate } from "../../directive-DCYlDznf.js"; | ||
import { h as createStoreDirective, k as mergeDirectives, d as directiveSubscribe, e as directiveUpdate } from "../../directive-3-8yr-ZK.js"; | ||
const neverEndingPromise = new Promise(noop); | ||
@@ -9,0 +9,0 @@ const noAnimation = async (element, direction) => { |
@@ -1,2 +0,2 @@ | ||
import { i as isBrowserHTMLElement, v as removeClasses, w as addClasses, x as reflow } from "../../directive-DCYlDznf.js"; | ||
import { i as isBrowserHTMLElement, v as removeClasses, w as addClasses, x as reflow } from "../../directive-3-8yr-ZK.js"; | ||
import { createCSSTransition } from "./cssTransitions.js"; | ||
@@ -3,0 +3,0 @@ const createCollapseTransition = ({ |
@@ -1,2 +0,2 @@ | ||
import { i as isBrowserHTMLElement } from "../../directive-DCYlDznf.js"; | ||
import { i as isBrowserHTMLElement } from "../../directive-3-8yr-ZK.js"; | ||
import { n as noop } from "../../func-DR0n-ShK.js"; | ||
@@ -3,0 +3,0 @@ import { a as promiseFromEvent, b as promiseFromTimeout } from "../../promise-CY2U8bTP.js"; |
import { createCSSTransition } from "./cssTransitions.js"; | ||
import { v as removeClasses, w as addClasses, x as reflow } from "../../directive-DCYlDznf.js"; | ||
import { v as removeClasses, w as addClasses, x as reflow } from "../../directive-3-8yr-ZK.js"; | ||
const createSimpleClassTransition = (config) => { | ||
@@ -4,0 +4,0 @@ const { animationPendingClasses, animationPendingShowClasses, animationPendingHideClasses, showClasses, hideClasses } = config; |
@@ -118,1 +118,3 @@ import type { ReadableSignal, StoreOptions, SubscribableStore, WritableSignal } from '@amadeus-it-group/tansu'; | ||
export type StyleValue = string | undefined | null; | ||
export type Extends<T, U> = T extends U ? 1 : 0; | ||
export type IsSlotContent<T> = Extends<T, SlotContent<any>> | Extends<SlotContent<any>, T> extends 1 ? T : 0; |
import "@amadeus-it-group/tansu"; | ||
import "esm-env"; | ||
import { o, a, c, b, p, n, g, j, f, h, q, d, e, i, m, k, l, r, s } from "../directive-DCYlDznf.js"; | ||
import { o, a, c, b, p, n, g, j, f, h, q, d, e, i, m, k, l, r, s } from "../directive-3-8yr-ZK.js"; | ||
import "../func-DR0n-ShK.js"; | ||
@@ -5,0 +5,0 @@ import "./stores.js"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
422026
11744