@ansh-ui/vue 0.2.0 → 0.3.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/dist/{chunk-B6OXKW5Q.js → chunk-AL4PPK25.js} +5 -2
- package/dist/chunk-AL4PPK25.js.map +1 -0
- package/dist/{chunk-5BQEZYG6.cjs → chunk-FK536ZUI.cjs} +15 -15
- package/dist/{chunk-5BQEZYG6.cjs.map → chunk-FK536ZUI.cjs.map} +1 -1
- package/dist/{chunk-TMG3M6TK.js → chunk-G2OX2NH2.js} +3 -3
- package/dist/chunk-G2OX2NH2.js.map +1 -0
- package/dist/{chunk-2VSROZ2N.js → chunk-HIVA75XC.js} +3 -3
- package/dist/{chunk-2VSROZ2N.js.map → chunk-HIVA75XC.js.map} +1 -1
- package/dist/{chunk-KCA7RNJ4.cjs → chunk-IHH6KMBY.cjs} +239 -5
- package/dist/chunk-IHH6KMBY.cjs.map +1 -0
- package/dist/{chunk-IOXGBPOV.cjs → chunk-IK3E4MPB.cjs} +3 -3
- package/dist/chunk-IK3E4MPB.cjs.map +1 -0
- package/dist/{chunk-SOYRICHU.js → chunk-LRTNIUAG.js} +3 -3
- package/dist/chunk-LRTNIUAG.js.map +1 -0
- package/dist/{chunk-EISHOEB6.cjs → chunk-MWGVDY6K.cjs} +3 -3
- package/dist/chunk-MWGVDY6K.cjs.map +1 -0
- package/dist/{chunk-T425FIC7.js → chunk-NKRPZTQA.js} +238 -5
- package/dist/chunk-NKRPZTQA.js.map +1 -0
- package/dist/{chunk-JQ4YLXXM.cjs → chunk-PNR4RQ4T.cjs} +5 -2
- package/dist/chunk-PNR4RQ4T.cjs.map +1 -0
- package/dist/data.d.cts +15 -14
- package/dist/data.d.ts +15 -14
- package/dist/form.cjs +36 -36
- package/dist/form.d.cts +32 -31
- package/dist/form.d.ts +32 -31
- package/dist/form.js +1 -1
- package/dist/index.cjs +159 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -8
- package/dist/index.d.ts +33 -8
- package/dist/index.js +27 -11
- package/dist/index.js.map +1 -1
- package/dist/layout.cjs +13 -13
- package/dist/layout.d.cts +24 -15
- package/dist/layout.d.ts +24 -15
- package/dist/layout.js +1 -1
- package/dist/motion.d.cts +14 -13
- package/dist/motion.d.ts +14 -13
- package/dist/navigation.cjs +13 -9
- package/dist/navigation.d.cts +124 -3
- package/dist/navigation.d.ts +124 -3
- package/dist/navigation.js +2 -2
- package/dist/overlay.cjs +14 -14
- package/dist/overlay.d.cts +9 -8
- package/dist/overlay.d.ts +9 -8
- package/dist/overlay.js +2 -2
- package/dist/{position-Cn7qP1pn.d.cts → position-CiY171HP.d.cts} +2 -1
- package/dist/{position-Cn7qP1pn.d.ts → position-CiY171HP.d.ts} +2 -1
- package/dist/primitives.cjs +6 -6
- package/dist/primitives.d.cts +6 -5
- package/dist/primitives.d.ts +6 -5
- package/dist/primitives.js +1 -1
- package/dist/{sidebar-CTZ-Ckko.d.ts → sidebar-B9zDHMbn.d.cts} +5 -4
- package/dist/{sidebar-CQqEmpid.d.cts → sidebar-DMrKHqZ5.d.ts} +5 -4
- package/dist/styles.css +464 -0
- package/dist/{utils-IKPG3zcC.d.cts → utils-D4XwXDeX.d.cts} +2 -1
- package/dist/{utils-IKPG3zcC.d.ts → utils-D4XwXDeX.d.ts} +2 -1
- package/package.json +3 -3
- package/dist/chunk-B6OXKW5Q.js.map +0 -1
- package/dist/chunk-EISHOEB6.cjs.map +0 -1
- package/dist/chunk-IOXGBPOV.cjs.map +0 -1
- package/dist/chunk-JQ4YLXXM.cjs.map +0 -1
- package/dist/chunk-KCA7RNJ4.cjs.map +0 -1
- package/dist/chunk-SOYRICHU.js.map +0 -1
- package/dist/chunk-T425FIC7.js.map +0 -1
- package/dist/chunk-TMG3M6TK.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/layout/shared.ts","../src/components/layout/stack.ts","../src/components/layout/grid.ts","../src/components/layout/container.ts","../src/components/layout/divider.ts","../src/components/layout/spacer.ts","../src/components/layout/center.ts","../src/components/layout/aspect-ratio.ts","../src/components/layout/scroll-area.ts","../src/components/layout/resizable.ts"],"names":["defineComponent","ref","h","cx","resolveSlotContent","Comment","Text","useControllableState"],"mappings":";;;;;;;AAkCO,SAAS,MAAM,KAAA,EAAmD;AACvE,EAAA,IAAI,KAAA,KAAU,QAAW,OAAO,MAAA;AAChC,EAAA,IAAI,OAAO,KAAA,KAAU,QAAA,EAAU,OAAO,KAAA;AACtC,EAAA,OAAO,oBAAoB,KAAK,CAAA,CAAA,CAAA;AAClC;AAGO,SAAS,WAAW,KAAA,EAIzB;AACA,EAAA,MAAM,EAAE,KAAA,EAAO,SAAA,EAAW,OAAO,SAAA,EAAW,GAAG,MAAK,GAAI,KAAA;AACxD,EAAA,OAAO,EAAE,KAAA,EAAQ,SAAA,IAAoC,EAAA,EAAI,KAAA,EAAO,WAAW,IAAA,EAAK;AAClF;;;AC9BA,SAAS,UAAA,GAAa;AACpB,EAAA,OAAO;AAAA,IACL,EAAA,EAAI,EAAE,IAAA,EAAM,MAAA,EAAQ,SAAS,KAAA,EAAM;AAAA,IACnC,GAAA,EAAK,EAAE,IAAA,EAAM,CAAC,QAAQ,MAAM,CAAA,EAA2B,SAAS,CAAA,EAAE;AAAA,IAClE,KAAA,EAAO,EAAE,IAAA,EAAM,MAAA,EAA+B,SAAS,MAAA,EAAU;AAAA,IACjE,OAAA,EAAS,EAAE,IAAA,EAAM,MAAA,EAA+B,SAAS,MAAA,EAAU;AAAA,IACnE,IAAA,EAAM,EAAE,IAAA,EAAM,OAAA,EAAS,SAAS,KAAA,EAAM;AAAA,IACtC,OAAA,EAAS,EAAE,IAAA,EAAM,OAAA,EAAS,SAAS,KAAA,EAAM;AAAA,IACzC,MAAA,EAAQ,EAAE,IAAA,EAAM,OAAA,EAAS,SAAS,KAAA;AAAM,GAC1C;AACF;AAEA,SAAS,UAAA,CACP,WACA,KAAA,EAOe;AACf,E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O,mCAAA;AAAA,cACP,aAAA;AAAA,cACA,SAAA;AAAA;AAAA;AAAA,cAGA,UAAA,EAAY,MAAM,QAAA,CAAS,EAAE;AAAA,aAC/B;AAAA,YACA,CAACA,MAAE,MAAA,EAAQ,EAAE,OAAO,kBAAA,EAAoB,aAAA,EAAe,MAAA,EAAQ,CAAC;AAAA,WAClE;AAAA,UAEAA,KAAAA,CAAE,KAAA,EAAO,EAAE,KAAA,EAAO,kBAAA,IAAsB,CAAC,KAAA,CAAM,CAAC,CAAC,CAAC;AAAA;AACpD,OACF;AAAA,IACF,CAAA;AAAA,EACF;AACF,CAAC","file":"chunk-PNR4RQ4T.cjs","sourcesContent":["/**\n * Layout primitives — the Vue counterpart of `@ansh-ui/react`'s layout components.\n *\n * These exist because every application rebuilds them, badly. The rebuilt versions hardcode gaps in\n * pixels, so they don't respond to a density setting; they use margins, so they collapse\n * unpredictably; and they don't handle the RTL case.\n *\n * Everything here takes a **token key**, not a raw value: `:gap=\"4\"` means `--ansh-space-4`, so a\n * layout is guaranteed to sit on the spacing scale. Passing an arbitrary string is still possible for\n * the genuine one-off, but the type nudges toward the scale first.\n *\n * Every component here declares only its own props and renders with `inheritAttrs: false` plus a\n * manual `class`/`style`/rest spread, so native attributes not declared as props (`id`, `data-*`, a\n * `@click` listener) fall through onto the rendered element automatically — the same convention\n * `Input` and `PopoverContent` use elsewhere in this package.\n */\n\n/** A key into the spacing scale, or a raw CSS length for the rare exception. */\nexport type SpaceToken =\n 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | (string & {})\n\n/**\n * A CSS `align-items`/`justify-content` value, typed as a plain string rather than\n * `CSSProperties['alignItems']`/`['justifyContent']`.\n *\n * The indexed-access csstype type is structurally correct but not **portable**: embedding it in an\n * exported component's props makes TypeScript's declaration emitter need to name an internal\n * `csstype` package type by its pnpm store path, which a consumer's project can't resolve and fails\n * the build with TS2742 (\"cannot be named without a reference to .pnpm/csstype@.../csstype\"). A\n * plain string loses autocomplete for the handful of valid values; the runtime behaviour — the\n * string flows straight into the style property — is identical.\n */\nexport type FlexAlign = string\n\nexport function space(value: SpaceToken | undefined): string | undefined {\n if (value === undefined) return undefined\n if (typeof value === 'string') return value\n return `var(--ansh-space-${value})`\n}\n\n/** Split `attrs` into the pieces every component here re-merges by hand. */\nexport function splitAttrs(attrs: Record<string, unknown>): {\n class: string\n style: unknown\n rest: Record<string, unknown>\n} {\n const { class: attrClass, style: attrStyle, ...rest } = attrs\n return { class: (attrClass as string | undefined) ?? '', style: attrStyle, rest }\n}\n","import { type CSSProperties, type PropType, defineComponent, h, ref } from 'vue'\nimport { cx } from '../../primitives/utils'\nimport { type FlexAlign, type SpaceToken, space, splitAttrs } from './shared'\n\nexport interface StackProps {\n as?: string\n /** Default `'vertical'` — the direction that needs a helper more often. */\n direction?: 'horizontal' | 'vertical'\n gap?: SpaceToken\n align?: FlexAlign\n justify?: FlexAlign\n wrap?: boolean\n /** Grow to fill the cross axis. */\n stretch?: boolean\n /** Insert a hairline divider between children. */\n divide?: boolean\n}\n\nfunction stackProps() {\n return {\n as: { type: String, default: 'div' },\n gap: { type: [Number, String] as PropType<SpaceToken>, default: 4 },\n align: { type: String as PropType<FlexAlign>, default: undefined },\n justify: { type: String as PropType<FlexAlign>, default: undefined },\n wrap: { type: Boolean, default: false },\n stretch: { type: Boolean, default: false },\n divide: { type: Boolean, default: false },\n }\n}\n\nfunction stackStyle(\n direction: 'horizontal' | 'vertical',\n props: {\n gap: SpaceToken\n align?: FlexAlign\n justify?: FlexAlign\n wrap: boolean\n stretch: boolean\n },\n): CSSProperties {\n return {\n display: 'flex',\n flexDirection: direction === 'horizontal' ? 'row' : 'column',\n gap: space(props.gap),\n // Cast at the point of use, not in the public prop type — see the `FlexAlign` doc comment.\n alignItems: (props.align ??\n (props.stretch ? 'stretch' : undefined)) as CSSProperties['alignItems'],\n justifyContent: props.justify as CSSProperties['justifyContent'],\n flexWrap: props.wrap ? 'wrap' : undefined,\n }\n}\n\n/**\n * One-dimensional flex layout.\n *\n * ```vue\n * <Stack direction=\"horizontal\" :gap=\"3\" align=\"center\">\n * <Avatar :src=\"user.avatar\" :name=\"user.name\" />\n * <Stack :gap=\"0.5\">\n * <strong>{{ user.name }}</strong>\n * <Text tone=\"secondary\">{{ user.email }}</Text>\n * </Stack>\n * </Stack>\n * ```\n */\nexport const Stack = defineComponent({\n name: 'AnshStack',\n inheritAttrs: false,\n props: {\n ...stackProps(),\n direction: { type: String as PropType<'horizontal' | 'vertical'>, default: 'vertical' },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-stack', props.divide && 'ansh-stack--divide', attrClass),\n 'data-direction': props.direction,\n style: [stackStyle(props.direction, props), attrStyle],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n\n/** Horizontal `Stack`, for readability at call sites. */\nexport const HStack = defineComponent({\n name: 'AnshHStack',\n inheritAttrs: false,\n props: stackProps(),\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-stack', props.divide && 'ansh-stack--divide', attrClass),\n 'data-direction': 'horizontal',\n style: [stackStyle('horizontal', props), attrStyle],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n\n/** Vertical `Stack`, for symmetry with `HStack`. */\nexport const VStack = defineComponent({\n name: 'AnshVStack',\n inheritAttrs: false,\n props: stackProps(),\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-stack', props.divide && 'ansh-stack--divide', attrClass),\n 'data-direction': 'vertical',\n style: [stackStyle('vertical', props), attrStyle],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n","import { type PropType, defineComponent, h, ref } from 'vue'\nimport { cx } from '../../primitives/utils'\nimport { type FlexAlign, type SpaceToken, space, splitAttrs } from './shared'\n\nexport interface GridProps {\n as?: string\n /** Fixed column count, or `'auto'` for a responsive `auto-fill` track. */\n columns?: number | 'auto'\n /** Minimum column width when `columns=\"auto\"`. Default `'16rem'`. */\n minColumnWidth?: string\n gap?: SpaceToken\n /** Row gap, when it should differ from the column gap. */\n rowGap?: SpaceToken\n align?: FlexAlign\n}\n\n/**\n * Two-dimensional layout.\n *\n * `columns=\"auto\"` uses `repeat(auto-fill, minmax(min(N, 100%), 1fr))`. The inner `min()` is what\n * stops the grid overflowing on a phone: without it, a 16rem minimum on a 15rem-wide viewport\n * produces a track wider than the screen and a horizontal scrollbar.\n */\nexport const Grid = defineComponent({\n name: 'AnshGrid',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n columns: { type: [Number, String] as PropType<number | 'auto'>, default: 'auto' },\n minColumnWidth: { type: String, default: '16rem' },\n gap: { type: [Number, String] as PropType<SpaceToken>, default: 4 },\n rowGap: { type: [Number, String] as PropType<SpaceToken>, default: undefined },\n align: { type: String as PropType<FlexAlign>, default: undefined },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-grid', attrClass),\n style: [\n {\n display: 'grid',\n gridTemplateColumns:\n props.columns === 'auto'\n ? `repeat(auto-fill, minmax(min(${props.minColumnWidth}, 100%), 1fr))`\n : `repeat(${props.columns}, minmax(0, 1fr))`,\n gap: space(props.gap),\n rowGap: space(props.rowGap),\n alignItems: props.align,\n },\n attrStyle,\n ],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n\nexport interface GridItemProps {\n as?: string\n /** Columns to span. `'full'` spans the whole row. */\n span?: number | 'full'\n rowSpan?: number\n}\n\nexport const GridItem = defineComponent({\n name: 'AnshGridItem',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n span: { type: [Number, String] as PropType<number | 'full'>, default: undefined },\n rowSpan: { type: Number, default: undefined },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: attrClass,\n style: [\n {\n gridColumn:\n props.span === 'full'\n ? '1 / -1'\n : props.span\n ? `span ${props.span} / span ${props.span}`\n : undefined,\n gridRow: props.rowSpan ? `span ${props.rowSpan} / span ${props.rowSpan}` : undefined,\n // `minWidth: 0` on every grid child. Without it a child containing a long unbroken\n // string or a table refuses to shrink below its content width and blows out the track.\n minWidth: 0,\n },\n attrStyle,\n ],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n","import { type PropType, defineComponent, h, ref } from 'vue'\nimport { cx } from '../../primitives/utils'\nimport { type SpaceToken, space, splitAttrs } from './shared'\n\nexport interface ContainerProps {\n as?: string\n /** Max content width. Default `'lg'` (72rem). */\n size?: 'sm' | 'md' | 'lg' | 'xl' | 'full'\n /** Horizontal padding. Default `6`. */\n padding?: SpaceToken\n}\n\nconst CONTAINER_WIDTH = {\n sm: '40rem',\n md: '56rem',\n lg: '72rem',\n xl: '90rem',\n full: '100%',\n} as const\n\n/** Centred, width-constrained page content. */\nexport const Container = defineComponent({\n name: 'AnshContainer',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n size: { type: String as PropType<'sm' | 'md' | 'lg' | 'xl' | 'full'>, default: 'lg' },\n padding: { type: [Number, String] as PropType<SpaceToken>, default: 6 },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-container', attrClass),\n style: [\n {\n width: '100%',\n maxWidth: CONTAINER_WIDTH[props.size],\n marginInline: 'auto',\n paddingInline: space(props.padding),\n },\n attrStyle,\n ],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n","import { type PropType, defineComponent, h } from 'vue'\nimport { type SlotContent, cx, resolveSlotContent } from '../../primitives/utils'\nimport { splitAttrs } from './shared'\n\nexport interface DividerProps {\n orientation?: 'horizontal' | 'vertical'\n /** Optional label rendered in the middle of the rule. */\n label?: SlotContent\n}\n\n/**\n * A rule.\n *\n * With a label it becomes a labelled separator — the \"or continue with\" divider on a sign-in form.\n * `role=\"separator\"` is set only when there's no label; with one, it's a heading-like element and\n * announcing it as a separator loses the text.\n *\n * Renders a plain `<div>` regardless of what `as` a caller might pass, matching\n * `@ansh-ui/react`'s `Divider` — which declares `as` on its props type via `BaseProps` but never\n * actually reads it, always rendering a literal `<div>`. Not declaring `as` here reproduces that\n * quirk exactly: an `as` attribute would simply fall through as an inert HTML attribute, same as it\n * does in React.\n */\nexport const Divider = defineComponent({\n name: 'AnshDivider',\n inheritAttrs: false,\n props: {\n orientation: { type: String as PropType<'horizontal' | 'vertical'>, default: 'horizontal' },\n label: { type: [String, Object, Function] as PropType<SlotContent>, default: undefined },\n },\n setup(props, { attrs }) {\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n\n if (props.label !== undefined) {\n return h(\n 'div',\n {\n class: cx('ansh-divider', 'ansh-divider--labelled', attrClass),\n style: attrStyle,\n ...rest,\n },\n [\n h('span', { class: 'ansh-divider__line' }),\n h('span', { class: 'ansh-divider__label' }, [resolveSlotContent(props.label)]),\n h('span', { class: 'ansh-divider__line' }),\n ],\n )\n }\n\n return h('div', {\n role: 'separator',\n 'aria-orientation': props.orientation,\n class: cx('ansh-divider', `ansh-divider--${props.orientation}`, attrClass),\n style: attrStyle,\n ...rest,\n })\n }\n },\n})\n","import { type PropType, defineComponent, h } from 'vue'\nimport { type SpaceToken, space } from './shared'\n\nexport interface SpacerProps {\n size?: SpaceToken\n /** Grow to absorb free space in a flex container. */\n grow?: boolean\n}\n\n/** Explicit empty space. `grow` pushes siblings apart in a flex row. */\nexport const Spacer = defineComponent({\n name: 'AnshSpacer',\n props: {\n size: { type: [Number, String] as PropType<SpaceToken>, default: undefined },\n grow: { type: Boolean, default: false },\n },\n setup(props) {\n return () =>\n h('span', {\n 'aria-hidden': 'true',\n style: {\n display: 'block',\n flexGrow: props.grow ? 1 : 0,\n flexShrink: 0,\n ...(props.size !== undefined\n ? { width: space(props.size), height: space(props.size) }\n : null),\n },\n })\n },\n})\n","import { defineComponent, h, ref } from 'vue'\nimport { splitAttrs } from './shared'\n\nexport interface CenterProps {\n as?: string\n}\n\n/** Centre a child on both axes. */\nexport const Center = defineComponent({\n name: 'AnshCenter',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: attrClass,\n style: [{ display: 'grid', placeItems: 'center' }, attrStyle],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n","import { defineComponent, h, ref } from 'vue'\nimport { cx } from '../../primitives/utils'\nimport { splitAttrs } from './shared'\n\nexport interface AspectRatioProps {\n as?: string\n /** Width ÷ height. `16 / 9` reads better than `1.777`. Default `16 / 9`. */\n ratio?: number\n}\n\n/**\n * Reserve space at a fixed aspect ratio.\n *\n * Uses the `aspect-ratio` property rather than the padding-top hack. The reserved space is what\n * matters: an image that loads without it shifts everything below, which is a Cumulative Layout\n * Shift penalty and the most common cause of a failing Core Web Vitals score.\n */\nexport const AspectRatio = defineComponent({\n name: 'AnshAspectRatio',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n ratio: { type: Number, default: 16 / 9 },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-aspect', attrClass),\n style: [{ aspectRatio: String(props.ratio) }, attrStyle],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n","import { type PropType, defineComponent, h, ref } from 'vue'\nimport { cx } from '../../primitives/utils'\nimport { splitAttrs } from './shared'\n\nexport interface ScrollAreaProps {\n as?: string\n /** Max height before scrolling starts. */\n maxHeight?: string\n axis?: 'y' | 'x' | 'both'\n /** Fade the content at the scrollable edges. Default `true`. */\n fade?: boolean\n}\n\n/**\n * A scroll container with styled scrollbars and edge fades.\n *\n * The native scrollbar is kept — a JavaScript-rendered one breaks keyboard scrolling, mobile\n * momentum, and the OS \"scroll bar is always visible\" accessibility setting. It is only *styled*,\n * via `scrollbar-width`/`scrollbar-color` with a `::-webkit-scrollbar` fallback.\n *\n * The edge fade is a mask that appears only when there is more content in that direction. It is\n * driven by `animation-timeline: scroll()` where supported, so it costs nothing on the main thread\n * and degrades to no fade where it isn't.\n */\nexport const ScrollArea = defineComponent({\n name: 'AnshScrollArea',\n inheritAttrs: false,\n props: {\n as: { type: String, default: 'div' },\n maxHeight: { type: String, default: undefined },\n axis: { type: String as PropType<'y' | 'x' | 'both'>, default: 'y' },\n fade: { type: Boolean, default: true },\n },\n setup(props, { attrs, slots, expose }) {\n const el = ref<HTMLElement | null>(null)\n expose({\n get element() {\n return el.value\n },\n })\n\n return () => {\n const {\n class: attrClass,\n style: attrStyle,\n rest,\n } = splitAttrs(attrs as Record<string, unknown>)\n return h(\n props.as,\n {\n ref: el,\n class: cx('ansh-scroll', props.fade && 'ansh-scroll--fade', attrClass),\n 'data-axis': props.axis,\n style: [\n {\n maxHeight: props.maxHeight,\n overflowY: props.axis === 'x' ? 'hidden' : 'auto',\n overflowX: props.axis === 'y' ? 'hidden' : 'auto',\n },\n attrStyle,\n ],\n ...rest,\n },\n slots.default?.(),\n )\n }\n },\n})\n","import { Comment, type PropType, Text, type VNode, defineComponent, h, ref } from 'vue'\nimport { cx } from '../../primitives/utils'\nimport { useControllableState } from '../../primitives/use-controllable-state'\n\n/**\n * A two-pane split with a draggable divider — the Vue counterpart of `@ansh-ui/react`'s `Resizable`.\n *\n * The layout every IDE, mail client and admin console needs, and the one most often shipped as\n * mouse-only. The handle here is a real `role=\"separator\"` with `aria-valuenow`, and arrow keys move\n * it in 2% steps — WAI-ARIA calls this a window splitter and it is a documented pattern, not an\n * invention.\n *\n * Sizes are percentages rather than pixels so the split survives a window resize proportionally.\n * Dragging writes to a CSS custom property directly, bypassing Vue's renderer: a re-render per\n * pointer move makes the drag feel heavy on a complex page, and the value is only committed to state\n * on release.\n *\n * `size`/`update:size` follow this package's controlled-prop convention (see `Popover`'s\n * `open`/`update:open`), so `v-model:size` works for the controlled case; `onSizeChange` from the\n * React version becomes the `update:size` emit.\n */\n\nexport interface ResizableProps {\n direction?: 'horizontal' | 'vertical'\n /** First pane's size as a percentage, `0`–`100`. Default `50`. */\n defaultSize?: number\n size?: number\n /** Clamp, as percentages. Defaults `10` and `90`. */\n minSize?: number\n maxSize?: number\n /** Snap points in percent, e.g. `[25, 50, 75]`. Within 3% the handle snaps. */\n snapPoints?: readonly number[]\n /** Accessible name for the handle — \"Resize sidebar\", not \"Resize\". */\n label?: string\n}\n\n/** Drop whitespace-only text nodes and `v-if=\"false\"` comment placeholders from a slot's output. */\nfunction normalizeChildren(nodes: VNode[] | undefined): VNode[] {\n return (nodes ?? []).filter((node) => {\n if (node.type === Comment) return false\n if (node.type === Text && typeof node.children === 'string' && node.children.trim() === '') {\n return false\n }\n return true\n })\n}\n\nexport const Resizable = defineComponent({\n name: 'AnshResizable',\n inheritAttrs: false,\n props: {\n direction: { type: String as PropType<'horizontal' | 'vertical'>, default: 'horizontal' },\n defaultSize: { type: Number, default: 50 },\n size: { type: Number, default: undefined },\n minSize: { type: Number, default: 10 },\n maxSize: { type: Number, default: 90 },\n snapPoints: { type: Array as PropType<readonly number[]>, default: undefined },\n label: { type: String, default: 'Resize panes' },\n },\n emits: ['update:size'],\n setup(props, { attrs, slots, emit, expose }) {\n const [value, setValue] = useControllableState<number>(\n () => props.size,\n props.defaultSize,\n (next) => emit('update:size', next),\n )\n\n const containerRef = ref<HTMLDivElement | null>(null)\n const dragging = ref(false)\n\n expose({\n get element() {\n return containerRef.value\n },\n })\n\n const clamp = (next: number): number => {\n let result = Math.min(Math.max(next, props.minSize), props.maxSize)\n if (props.snapPoints) {\n for (const point of props.snapPoints) {\n if (Math.abs(result - point) < 3) {\n result = point\n break\n }\n }\n }\n return result\n }\n\n const onPointerdown = (event: PointerEvent): void => {\n const container = containerRef.value\n if (!container) return\n\n // Pointer capture keeps events coming to the handle even when the pointer outruns it, which\n // it will — a fast drag easily leaves the 8px handle behind and the drag would otherwise stop\n // dead mid-gesture.\n ;(event.currentTarget as HTMLElement).setPointerCapture(event.pointerId)\n dragging.value = true\n\n let latest = value.value\n\n const onMove = (moveEvent: PointerEvent): void => {\n const rect = container.getBoundingClientRect()\n const fraction =\n props.direction === 'horizontal'\n ? (moveEvent.clientX - rect.left) / rect.width\n : (moveEvent.clientY - rect.top) / rect.height\n\n latest = clamp(fraction * 100)\n // Written straight to the DOM. Vue state is updated once, on release.\n container.style.setProperty('--ansh-split', `${latest}%`)\n }\n\n const onUp = (): void => {\n dragging.value = false\n setValue(latest)\n window.removeEventListener('pointermove', onMove)\n window.removeEventListener('pointerup', onUp)\n window.removeEventListener('pointercancel', onUp)\n }\n\n window.addEventListener('pointermove', onMove)\n window.addEventListener('pointerup', onUp)\n window.addEventListener('pointercancel', onUp)\n }\n\n const onKeydown = (event: KeyboardEvent): void => {\n const step = event.shiftKey ? 10 : 2\n const forward = props.direction === 'horizontal' ? 'ArrowRight' : 'ArrowDown'\n const backward = props.direction === 'horizontal' ? 'ArrowLeft' : 'ArrowUp'\n\n let next: number | null = null\n if (event.key === forward) next = value.value + step\n else if (event.key === backward) next = value.value - step\n else if (event.key === 'Home') next = props.minSize\n else if (event.key === 'End') next = props.maxSize\n // Enter toggles between collapsed and the midpoint — the shortcut people expect from a\n // collapsible sidebar, and the only way to fully collapse without a mouse.\n else if (event.key === 'Enter') next = value.value <= props.minSize + 1 ? 50 : props.minSize\n\n if (next === null) return\n event.preventDefault()\n setValue(clamp(next))\n }\n\n return () => {\n const { class: attrClass, ...restAttrs } = attrs as Record<string, unknown>\n const panes = normalizeChildren(slots.default?.())\n\n return h(\n 'div',\n {\n ref: containerRef,\n class: cx(\n 'ansh-split',\n `ansh-split--${props.direction}`,\n dragging.value && 'ansh-split--dragging',\n attrClass as string,\n ),\n // Reactive on every render, mirroring the React version's `style` prop — kept in sync\n // outside a drag, when the pointer handler above is the one writing it directly.\n style: { ['--ansh-split' as string]: `${value.value}%` },\n ...restAttrs,\n },\n [\n h('div', { class: 'ansh-split__pane' }, [panes[0]]),\n\n h(\n 'div',\n {\n role: 'separator',\n tabindex: 0,\n 'aria-label': props.label,\n 'aria-orientation': props.direction === 'horizontal' ? 'vertical' : 'horizontal',\n 'aria-valuenow': Math.round(value.value),\n 'aria-valuemin': props.minSize,\n 'aria-valuemax': props.maxSize,\n class: 'ansh-split__handle ansh-focusable',\n onPointerdown,\n onKeydown,\n // Double-click resets to centre. Undocumented in the UI but universally expected, and\n // harmless to discover by accident.\n onDblclick: () => setValue(50),\n },\n [h('span', { class: 'ansh-split__grip', 'aria-hidden': 'true' })],\n ),\n\n h('div', { class: 'ansh-split__pane' }, [panes[1]]),\n ],\n )\n }\n },\n})\n"]}
|
package/dist/data.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { VNodeChild, PropType, VNode } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { SlotContent } from './index.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Tables — the Vue counterpart of `@ansh-ui/react`'s `Table`/`DataTable`.
|
|
@@ -177,8 +177,8 @@ declare const Pagination: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
177
177
|
default: number;
|
|
178
178
|
};
|
|
179
179
|
}>> & Readonly<{}>, {
|
|
180
|
-
pageSize: number;
|
|
181
180
|
total: number;
|
|
181
|
+
pageSize: number;
|
|
182
182
|
siblings: number;
|
|
183
183
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
184
184
|
/** A plain styled table, for content that isn't driven by data props. */
|
|
@@ -285,8 +285,8 @@ declare const Badge: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
285
285
|
}>> & Readonly<{}>, {
|
|
286
286
|
size: "sm" | "md";
|
|
287
287
|
icon: SlotContent;
|
|
288
|
-
variant: "soft" | "outline" | "solid";
|
|
289
288
|
tone: BadgeTone;
|
|
289
|
+
variant: "soft" | "solid" | "outline";
|
|
290
290
|
dot: boolean;
|
|
291
291
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
292
292
|
interface AvatarProps {
|
|
@@ -353,7 +353,7 @@ declare const Avatar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
353
353
|
}>> & Readonly<{}>, {
|
|
354
354
|
size: "sm" | "md" | "lg" | "xl" | "xs";
|
|
355
355
|
src: string;
|
|
356
|
-
status: "
|
|
356
|
+
status: "busy" | "online" | "offline" | "away";
|
|
357
357
|
shape: "circle" | "square";
|
|
358
358
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
359
359
|
/** Overlapping avatars with an overflow count. */
|
|
@@ -476,9 +476,9 @@ declare const Stat: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
476
476
|
default: undefined;
|
|
477
477
|
};
|
|
478
478
|
}>> & Readonly<{}>, {
|
|
479
|
-
delta: number;
|
|
480
479
|
icon: SlotContent;
|
|
481
480
|
hint: SlotContent;
|
|
481
|
+
delta: number;
|
|
482
482
|
deltaLabel: string;
|
|
483
483
|
invertDelta: boolean;
|
|
484
484
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -764,11 +764,11 @@ declare const Progress: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
764
764
|
default: undefined;
|
|
765
765
|
};
|
|
766
766
|
}>> & Readonly<{}>, {
|
|
767
|
-
value: number;
|
|
768
767
|
size: "sm" | "md" | "lg";
|
|
768
|
+
value: number;
|
|
769
769
|
max: number;
|
|
770
770
|
formatValue: (value: number, max: number) => string;
|
|
771
|
-
tone: "
|
|
771
|
+
tone: "accent" | "success" | "warning" | "danger";
|
|
772
772
|
showLabel: boolean;
|
|
773
773
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
774
774
|
interface CircularProgressProps extends Omit<ProgressProps, 'size'> {
|
|
@@ -848,12 +848,12 @@ declare const CircularProgress: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
848
848
|
default: undefined;
|
|
849
849
|
};
|
|
850
850
|
}>> & Readonly<{}>, {
|
|
851
|
-
value: number;
|
|
852
851
|
size: number;
|
|
853
|
-
|
|
852
|
+
value: number;
|
|
854
853
|
max: number;
|
|
855
854
|
formatValue: (value: number, max: number) => string;
|
|
856
|
-
tone: "
|
|
855
|
+
tone: "accent" | "success" | "warning" | "danger";
|
|
856
|
+
thickness: number;
|
|
857
857
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
858
858
|
interface MeterProps {
|
|
859
859
|
value: number;
|
|
@@ -951,13 +951,14 @@ declare const Meter: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
951
951
|
default: undefined;
|
|
952
952
|
};
|
|
953
953
|
}>> & Readonly<{}>, {
|
|
954
|
-
high: number;
|
|
955
|
-
low: number;
|
|
956
|
-
max: number;
|
|
957
954
|
min: number;
|
|
955
|
+
max: number;
|
|
958
956
|
showValue: boolean;
|
|
959
957
|
formatValue: (value: number) => string;
|
|
958
|
+
low: number;
|
|
959
|
+
high: number;
|
|
960
960
|
inverted: boolean;
|
|
961
961
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
962
962
|
|
|
963
|
-
export { Avatar, AvatarGroup,
|
|
963
|
+
export { Avatar, AvatarGroup, Badge, CircularProgress, CodeBlock, DataTable, DescriptionList, EmptyState, Kbd, Meter, Pagination, Progress, Stat, Table, Timeline };
|
|
964
|
+
export type { AvatarProps, BadgeTone, CircularProgressProps, CodeBlockProps, Column, DataTableProps, DescriptionListProps, EmptyStateProps, MeterProps, PaginationProps, ProgressProps, SortDirection, SortState, StatProps, TimelineItem };
|
package/dist/data.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { VNodeChild, PropType, VNode } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { SlotContent } from './index.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Tables — the Vue counterpart of `@ansh-ui/react`'s `Table`/`DataTable`.
|
|
@@ -177,8 +177,8 @@ declare const Pagination: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
177
177
|
default: number;
|
|
178
178
|
};
|
|
179
179
|
}>> & Readonly<{}>, {
|
|
180
|
-
pageSize: number;
|
|
181
180
|
total: number;
|
|
181
|
+
pageSize: number;
|
|
182
182
|
siblings: number;
|
|
183
183
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
184
184
|
/** A plain styled table, for content that isn't driven by data props. */
|
|
@@ -285,8 +285,8 @@ declare const Badge: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
285
285
|
}>> & Readonly<{}>, {
|
|
286
286
|
size: "sm" | "md";
|
|
287
287
|
icon: SlotContent;
|
|
288
|
-
variant: "soft" | "outline" | "solid";
|
|
289
288
|
tone: BadgeTone;
|
|
289
|
+
variant: "soft" | "solid" | "outline";
|
|
290
290
|
dot: boolean;
|
|
291
291
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
292
292
|
interface AvatarProps {
|
|
@@ -353,7 +353,7 @@ declare const Avatar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
353
353
|
}>> & Readonly<{}>, {
|
|
354
354
|
size: "sm" | "md" | "lg" | "xl" | "xs";
|
|
355
355
|
src: string;
|
|
356
|
-
status: "
|
|
356
|
+
status: "busy" | "online" | "offline" | "away";
|
|
357
357
|
shape: "circle" | "square";
|
|
358
358
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
359
359
|
/** Overlapping avatars with an overflow count. */
|
|
@@ -476,9 +476,9 @@ declare const Stat: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
476
476
|
default: undefined;
|
|
477
477
|
};
|
|
478
478
|
}>> & Readonly<{}>, {
|
|
479
|
-
delta: number;
|
|
480
479
|
icon: SlotContent;
|
|
481
480
|
hint: SlotContent;
|
|
481
|
+
delta: number;
|
|
482
482
|
deltaLabel: string;
|
|
483
483
|
invertDelta: boolean;
|
|
484
484
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -764,11 +764,11 @@ declare const Progress: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
764
764
|
default: undefined;
|
|
765
765
|
};
|
|
766
766
|
}>> & Readonly<{}>, {
|
|
767
|
-
value: number;
|
|
768
767
|
size: "sm" | "md" | "lg";
|
|
768
|
+
value: number;
|
|
769
769
|
max: number;
|
|
770
770
|
formatValue: (value: number, max: number) => string;
|
|
771
|
-
tone: "
|
|
771
|
+
tone: "accent" | "success" | "warning" | "danger";
|
|
772
772
|
showLabel: boolean;
|
|
773
773
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
774
774
|
interface CircularProgressProps extends Omit<ProgressProps, 'size'> {
|
|
@@ -848,12 +848,12 @@ declare const CircularProgress: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
848
848
|
default: undefined;
|
|
849
849
|
};
|
|
850
850
|
}>> & Readonly<{}>, {
|
|
851
|
-
value: number;
|
|
852
851
|
size: number;
|
|
853
|
-
|
|
852
|
+
value: number;
|
|
854
853
|
max: number;
|
|
855
854
|
formatValue: (value: number, max: number) => string;
|
|
856
|
-
tone: "
|
|
855
|
+
tone: "accent" | "success" | "warning" | "danger";
|
|
856
|
+
thickness: number;
|
|
857
857
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
858
858
|
interface MeterProps {
|
|
859
859
|
value: number;
|
|
@@ -951,13 +951,14 @@ declare const Meter: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
951
951
|
default: undefined;
|
|
952
952
|
};
|
|
953
953
|
}>> & Readonly<{}>, {
|
|
954
|
-
high: number;
|
|
955
|
-
low: number;
|
|
956
|
-
max: number;
|
|
957
954
|
min: number;
|
|
955
|
+
max: number;
|
|
958
956
|
showValue: boolean;
|
|
959
957
|
formatValue: (value: number) => string;
|
|
958
|
+
low: number;
|
|
959
|
+
high: number;
|
|
960
960
|
inverted: boolean;
|
|
961
961
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
962
962
|
|
|
963
|
-
export { Avatar, AvatarGroup,
|
|
963
|
+
export { Avatar, AvatarGroup, Badge, CircularProgress, CodeBlock, DataTable, DescriptionList, EmptyState, Kbd, Meter, Pagination, Progress, Stat, Table, Timeline };
|
|
964
|
+
export type { AvatarProps, BadgeTone, CircularProgressProps, CodeBlockProps, Column, DataTableProps, DescriptionListProps, EmptyStateProps, MeterProps, PaginationProps, ProgressProps, SortDirection, SortState, StatProps, TimelineItem };
|
package/dist/form.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIK3E4MPB_cjs = require('./chunk-IK3E4MPB.cjs');
|
|
4
4
|
require('./chunk-XLLSS464.cjs');
|
|
5
5
|
require('./chunk-774WBLDR.cjs');
|
|
6
6
|
require('./chunk-6732H4BQ.cjs');
|
|
@@ -9,143 +9,143 @@ require('./chunk-6732H4BQ.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "Calendar", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkIK3E4MPB_cjs.Calendar; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "Checkbox", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkIK3E4MPB_cjs.Checkbox; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "ChoiceCard", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkIK3E4MPB_cjs.ChoiceCard; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "ColorPicker", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkIK3E4MPB_cjs.ColorPicker; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "Combobox", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkIK3E4MPB_cjs.Combobox; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "DatePicker", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkIK3E4MPB_cjs.DatePicker; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "DateRangePicker", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkIK3E4MPB_cjs.DateRangePicker; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "Dropzone", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkIK3E4MPB_cjs.Dropzone; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "Field", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkIK3E4MPB_cjs.Field; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "Fieldset", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkIK3E4MPB_cjs.Fieldset; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "Input", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkIK3E4MPB_cjs.Input; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "NumberInput", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkIK3E4MPB_cjs.NumberInput; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "OptionList", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkIK3E4MPB_cjs.OptionList; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "PinInput", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkIK3E4MPB_cjs.PinInput; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "Radio", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkIK3E4MPB_cjs.Radio; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "RadioGroup", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkIK3E4MPB_cjs.RadioGroup; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "RangeSlider", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkIK3E4MPB_cjs.RangeSlider; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "Rating", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkIK3E4MPB_cjs.Rating; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "Select", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkIK3E4MPB_cjs.Select; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "Slider", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkIK3E4MPB_cjs.Slider; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "Switch", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkIK3E4MPB_cjs.Switch; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "TagsInput", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkIK3E4MPB_cjs.TagsInput; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "Textarea", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkIK3E4MPB_cjs.Textarea; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "VisuallyHidden", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkIK3E4MPB_cjs.VisuallyHidden; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "addDays", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkIK3E4MPB_cjs.addDays; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "addMonths", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkIK3E4MPB_cjs.addMonths; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "filterOptions", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkIK3E4MPB_cjs.filterOptions; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "firstEnabled", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkIK3E4MPB_cjs.firstEnabled; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "isSameDay", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkIK3E4MPB_cjs.isSameDay; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "scoreOption", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkIK3E4MPB_cjs.scoreOption; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "startOfDay", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkIK3E4MPB_cjs.startOfDay; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "stepActive", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkIK3E4MPB_cjs.stepActive; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "useFieldContext", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkIK3E4MPB_cjs.useFieldContext; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "useFieldControl", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkIK3E4MPB_cjs.useFieldControl; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "useTypeahead", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkIK3E4MPB_cjs.useTypeahead; }
|
|
149
149
|
});
|
|
150
150
|
//# sourceMappingURL=form.cjs.map
|
|
151
151
|
//# sourceMappingURL=form.cjs.map
|