@lmb-it/kitsconcerto-native 0.1.284 → 0.1.286
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/apps/mobile/src/Core/AutoComplete/index.cjs +12 -4
- package/apps/mobile/src/Core/AutoComplete/index.cjs.map +1 -1
- package/apps/mobile/src/Core/AutoComplete/index.js +12 -4
- package/apps/mobile/src/Core/AutoComplete/index.js.map +1 -1
- package/apps/mobile/src/Core/MultiSelect/index.cjs +7 -4
- package/apps/mobile/src/Core/MultiSelect/index.cjs.map +1 -1
- package/apps/mobile/src/Core/MultiSelect/index.js +7 -4
- package/apps/mobile/src/Core/MultiSelect/index.js.map +1 -1
- package/apps/mobile/src/ui/accordion/index.js +2 -2
- package/components/ImageCropper/compression.cjs +63 -0
- package/components/ImageCropper/compression.cjs.map +1 -0
- package/components/ImageCropper/compression.js +58 -0
- package/components/ImageCropper/compression.js.map +1 -0
- package/components/ImageCropper/constants.cjs +35 -0
- package/components/ImageCropper/constants.cjs.map +1 -0
- package/components/ImageCropper/constants.js +23 -0
- package/components/ImageCropper/constants.js.map +1 -0
- package/components/ImageCropper/cropperState.cjs +119 -0
- package/components/ImageCropper/cropperState.cjs.map +1 -0
- package/components/ImageCropper/cropperState.js +114 -0
- package/components/ImageCropper/cropperState.js.map +1 -0
- package/components/ImageCropper/encode.cjs +45 -0
- package/components/ImageCropper/encode.cjs.map +1 -0
- package/components/ImageCropper/encode.js +42 -0
- package/components/ImageCropper/encode.js.map +1 -0
- package/components/ImageCropper/encoderRegistry.cjs +13 -0
- package/components/ImageCropper/encoderRegistry.cjs.map +1 -0
- package/components/ImageCropper/encoderRegistry.js +9 -0
- package/components/ImageCropper/encoderRegistry.js.map +1 -0
- package/components/ImageCropper/encoders/rnImageEncoder.cjs +54 -0
- package/components/ImageCropper/encoders/rnImageEncoder.cjs.map +1 -0
- package/components/ImageCropper/encoders/rnImageEncoder.js +51 -0
- package/components/ImageCropper/encoders/rnImageEncoder.js.map +1 -0
- package/components/ImageCropper/geometry.cjs +208 -0
- package/components/ImageCropper/geometry.cjs.map +1 -0
- package/components/ImageCropper/geometry.js +186 -0
- package/components/ImageCropper/geometry.js.map +1 -0
- package/components/ImageCropper/index.cjs +436 -0
- package/components/ImageCropper/index.cjs.map +1 -0
- package/components/ImageCropper/index.js +434 -0
- package/components/ImageCropper/index.js.map +1 -0
- package/components/ImageCropper/pinchZoom.cjs +8 -0
- package/components/ImageCropper/pinchZoom.cjs.map +1 -0
- package/components/ImageCropper/pinchZoom.js +5 -0
- package/components/ImageCropper/pinchZoom.js.map +1 -0
- package/components/ImageCropper/useImageSource.cjs +87 -0
- package/components/ImageCropper/useImageSource.cjs.map +1 -0
- package/components/ImageCropper/useImageSource.js +84 -0
- package/components/ImageCropper/useImageSource.js.map +1 -0
- package/form/helpers/FormContainer/index.cjs +12 -2
- package/form/helpers/FormContainer/index.cjs.map +1 -1
- package/form/helpers/FormContainer/index.js +12 -2
- package/form/helpers/FormContainer/index.js.map +1 -1
- package/form/selects/AutoComplete/index.cjs +10 -1
- package/form/selects/AutoComplete/index.cjs.map +1 -1
- package/form/selects/AutoComplete/index.js +11 -2
- package/form/selects/AutoComplete/index.js.map +1 -1
- package/form/selects/MultiSelect/index.cjs +8 -1
- package/form/selects/MultiSelect/index.cjs.map +1 -1
- package/form/selects/MultiSelect/index.js +9 -2
- package/form/selects/MultiSelect/index.js.map +1 -1
- package/hooks/useComponentDefaults.cjs +62 -8
- package/hooks/useComponentDefaults.cjs.map +1 -1
- package/hooks/useComponentDefaults.js +62 -8
- package/hooks/useComponentDefaults.js.map +1 -1
- package/index.cjs +120 -115
- package/index.cjs.map +1 -1
- package/index.d.ts +494 -16
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +13 -1
- package/packages/types/src/Theme/defaultTheme.cjs +135 -4
- package/packages/types/src/Theme/defaultTheme.cjs.map +1 -1
- package/packages/types/src/Theme/defaultTheme.js +135 -4
- package/packages/types/src/Theme/defaultTheme.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useComponentDefaults.js","sources":["../../../src/hooks/useComponentDefaults.ts"],"sourcesContent":["import {useMemo} from 'react';\nimport {useKitsTheme} from '../contexts/Theme';\n\n/**\n * Known element slot keys. When a config key matches one of these\n * AND the value has `props` or `style`, it is treated as an element slot.\n *\n * To add a new slot: add the key here AND to the relevant slot interface\n * in packages/types/src/Theme/types.ts (and to the `AllSlotKeys` union).\n *\n * The order below mirrors the typed slot hierarchy in\n * `packages/types/src/Theme/types.ts`.\n */\nconst ELEMENT_SLOT_KEYS = new Set([\n // ── Form-element slots ──────────────────────────────────\n // Base (all form elements — IFormElementBaseSlots)\n 'label', 'helperText', 'error',\n // Text input specific (ITextInputSlots — also shared by ISelectSlots)\n 'root', 'container', 'inputGroup', 'leftAddon', 'rightAddon',\n // Select specific (ISelectSlots — option-list popover)\n // Radio / Checkbox also use `item` / `itemSelected` / `itemDisabled` /\n // `itemHover` for the per-list-item wrapper, plus `itemInvalid`.\n 'panel', 'item', 'itemSelected', 'itemFocused', 'itemHover', 'itemDisabled', 'itemInvalid',\n // MultiSelect specific (IMultiSelectSlots — chips + per-item checkbox)\n 'token', 'tokenIcon',\n 'checkboxBox', 'checkboxBoxChecked', 'checkboxIcon',\n // Datepicker specific (IDatepickerSlots — calendar popup; `panel` shared with Select)\n 'calendarHeader', 'calendarNavButton', 'weekDay',\n 'dayCell', 'daySelected', 'dayToday', 'dayDisabled',\n // Switch specific (ISwitchSlots) — RENAMED from slider/sliderChecked/thumbChecked\n 'track', 'trackOn', 'thumb', 'thumbOn',\n // Checkbox specific (ICheckboxSlots)\n 'box', 'boxChecked', 'checkIcon',\n // Radio specific (IRadioSlots)\n 'circle', 'circleInner',\n // Radio + Checkbox: wrapper Flex around all list items\n 'itemsContainer',\n\n // ── Non-form component slots (untouched by the form-element refactor) ──\n // Card / Button / generic\n 'icon', 'header', 'title', 'subTitle', 'content', 'footer',\n // Button variants — `text` applies only to buttons with a label,\n // `iconOnly` applies only to icon-only buttons (so styling one never\n // affects the other).\n 'text', 'iconOnly',\n // Table\n 'th', 'headerRow', 'headerCell', 'body', 'bodyRow', 'bodyCell',\n 'wrapper', 'table', 'tbody',\n 'filterRow', 'filterCell', 'filterClearButton',\n 'columnFilter', 'columnFilterInput',\n 'tfoot', 'footerRow', 'footerCell', 'footer', 'paginator', 'emptyMessage',\n 'loadingOverlay', 'loadingIcon',\n 'rowGroupHeader', 'rowGroupHeaderName', 'rowExpansion', 'rowGroupFooter',\n 'rowGroupToggler', 'rowGroupTogglerIcon',\n 'resizeHelper',\n 'reorderIndicatorUp', 'reorderIndicatorUpIcon',\n 'reorderIndicatorDown', 'reorderIndicatorDownIcon',\n 'tableHeader', 'searchInput',\n 'paginatorPageButton', 'paginatorPageLink', 'paginatorActivePageButton',\n 'paginatorPageReport', 'paginatorRowsPerPage', 'paginatorRowsPerPageDropdown',\n 'paginatorPages',\n 'sortedColumn', 'stripedRow', 'selectedRow', 'selectedRowAccent',\n 'filterBar', 'filterInput', 'filterLabel',\n 'toolbarRight', 'toolbarButton', 'clearFilterButton', 'columnPicker',\n // Toolbar sizing + placeholder, and the chrome the table renders itself.\n // NOTE: a slot missing from this allowlist is silently dropped — theming\n // it has no effect at all — so every new slot must be listed here as\n // well as in its component's ITableElementSlots.\n 'toolbarControl', 'filterPlaceholder',\n 'topBar', 'bulkBar', 'bulkBarText',\n // Accordion\n 'headerActive', 'headerHover',\n // Sidebar/Drawer\n 'headerTitle', 'closeButton', 'mask',\n // Group (repeatable field array)\n 'row', 'addButton', 'removeButton',\n // Header (app-shell top bar)\n 'toggleModeButton', 'avatarButton', 'breadcrumb',\n]);\n\nexport interface IElementConfig {\n style: Record<string, any>;\n important?: boolean | string[];\n pseudo?: Record<string, Record<string, any>>;\n}\n\nexport interface UseComponentDefaultsResult<T> {\n /** Props with theme defaults merged in (user props always win) */\n mergedProps: T;\n /**\n * CSS style from root slot — backwards compat for components\n * that read themeStyle instead of elementStyles.root\n */\n themeStyle: Record<string, any>;\n /**\n * Per-element style maps. Each key is a slot name, value is the\n * merged IStyleClasses (not yet resolved to CSSProperties).\n * Use `useResolvedElementStyles(elementStyles)` to resolve.\n */\n elementStyles: Record<string, Record<string, any>>;\n /**\n * Full slot configs including `important` and `pseudo` fields.\n * Use this instead of `elementStyles` when you need those fields.\n */\n elementConfigs: Record<string, IElementConfig>;\n}\n\n/**\n * Merges theme-level component defaults with user-supplied props.\n *\n * Resolution chain (lowest → highest priority):\n * FormElement[slot] < baseGroup[slot] < component[slot] < instanceSlots[slot] < user props\n *\n * `FormElement` is the global base group for every form element\n * (label / helperText / error live there by default). It is applied\n * to every component regardless of whether a `baseGroup` is provided\n * — for non-form components like Button or Card, FormElement slots\n * are no-ops in practice because those components don't read\n * `elementStyles.label` / `helperText` / `error`.\n *\n * Element slots (`root`, `label`, `container`, etc.) are direct keys\n * on the component config. Each slot accepts `{ props?, style? }`.\n *\n * The `root` slot's `props` are merged into `mergedProps` alongside\n * user props (user always wins). The `root` slot's `style` is returned\n * as both `themeStyle` (backwards compat) and `elementStyles.root`.\n *\n * Supports base-group inheritance: e.g. `useComponentDefaults('InputText', rawProps, 'Input')`\n * merges FormElement first, then Input base, then InputText overrides,\n * then per-instance slots, then user props.\n *\n * @example\n * const { mergedProps, themeStyle, elementStyles } = useComponentDefaults('InputText', rawProps, 'Input');\n * // mergedProps → FormElement.root.props < Input.root.props < InputText.root.props < instanceSlots < user props\n * // elementStyles.label → FormElement.label.style < Input.label.style < InputText.label.style < instance label\n * // elementStyles.root → root element style (FormElement → Input → InputText → instance)\n * // elementStyles.container → container element style\n */\nexport default function useComponentDefaults<T extends Record<string, any>>(\n componentName: string,\n props: T,\n baseGroup?: string,\n): UseComponentDefaultsResult<T> {\n const {theme} = useKitsTheme();\n // Global base for every form element. Always looked up — if not\n // configured it is `undefined` and the merge contributes nothing.\n const formElementConfig = theme.components.FormElement;\n const baseConfig = baseGroup ? theme.components[baseGroup] : undefined;\n const config = theme.components[componentName];\n\n return useMemo(() => {\n // Extract per-instance slot overrides from props (IFormElement.slots passed through)\n const instanceSlots = (props as any).slots as Record<string, { props?: any; style?: any; important?: boolean | string[]; pseudo?: Record<string, Record<string, any>> }> | undefined;\n\n if (!config && !baseConfig && !instanceSlots && !formElementConfig) {\n return {mergedProps: props, themeStyle: {}, elementStyles: {}, elementConfigs: {}};\n }\n\n const formBase = (formElementConfig || {}) as Record<string, any>;\n const base = (baseConfig || {}) as Record<string, any>;\n const comp = (config || {}) as Record<string, any>;\n\n // --- Props merge: FormElement.root.props < base.root.props < config.root.props < instanceSlots.root.props < user props ---\n const merged = {\n ...(formBase.root?.props || {}),\n ...(base.root?.props || {}),\n ...(comp.root?.props || {}),\n ...(instanceSlots?.root?.props || {}),\n } as Record<string, any>;\n\n for (const key of Object.keys(props)) {\n // Skip 'slots' — it is consumed here, not forwarded\n if (key === 'slots') continue;\n if (props[key] !== undefined) {\n merged[key] = props[key];\n }\n }\n\n // --- Element styles merge: FormElement[slot] < base[slot] < config[slot] < instanceSlots[slot] ---\n const allSlotKeys = new Set<string>();\n for (const key of Object.keys(formBase)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n for (const key of Object.keys(base)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n for (const key of Object.keys(comp)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n if (instanceSlots) {\n for (const key of Object.keys(instanceSlots)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n }\n\n const elementStyles: Record<string, Record<string, any>> = {};\n const elementConfigs: Record<string, IElementConfig> = {};\n for (const slotKey of allSlotKeys) {\n const style = {\n ...(formBase[slotKey]?.style || {}),\n ...(base[slotKey]?.style || {}),\n ...(comp[slotKey]?.style || {}),\n ...(instanceSlots?.[slotKey]?.style || {}),\n };\n elementStyles[slotKey] = style;\n\n const pseudoMerged = {\n ...(formBase[slotKey]?.pseudo || {}),\n ...(base[slotKey]?.pseudo || {}),\n ...(comp[slotKey]?.pseudo || {}),\n ...(instanceSlots?.[slotKey]?.pseudo || {}),\n };\n elementConfigs[slotKey] = {\n style,\n important:\n instanceSlots?.[slotKey]?.important ??\n comp[slotKey]?.important ??\n base[slotKey]?.important ??\n formBase[slotKey]?.important,\n pseudo: Object.keys(pseudoMerged).length > 0 ? pseudoMerged : undefined,\n };\n }\n\n // themeStyle = root element style (backwards compat)\n const themeStyle = elementStyles.root || {};\n\n return {\n mergedProps: merged as T,\n themeStyle,\n elementStyles,\n elementConfigs,\n };\n }, [formElementConfig, baseConfig, config, props]);\n}\n"],"names":[],"mappings":";;;AAaA,MAAM,iBAAA,uBAAwB,GAAA,CAAI;AAAA;AAAA;AAAA,EAG9B,OAAA;AAAA,EAAS,YAAA;AAAA,EAAc,OAAA;AAAA;AAAA,EAEvB,MAAA;AAAA,EAAQ,WAAA;AAAA,EAAa,YAAA;AAAA,EAAc,WAAA;AAAA,EAAa,YAAA;AAAA;AAAA;AAAA;AAAA,EAIhD,OAAA;AAAA,EAAS,MAAA;AAAA,EAAQ,cAAA;AAAA,EAAgB,aAAA;AAAA,EAAe,WAAA;AAAA,EAAa,cAAA;AAAA,EAAgB,aAAA;AAAA;AAAA,EAE7E,OAAA;AAAA,EAAS,WAAA;AAAA,EACT,aAAA;AAAA,EAAe,oBAAA;AAAA,EAAsB,cAAA;AAAA;AAAA,EAErC,gBAAA;AAAA,EAAkB,mBAAA;AAAA,EAAqB,SAAA;AAAA,EACvC,SAAA;AAAA,EAAW,aAAA;AAAA,EAAe,UAAA;AAAA,EAAY,aAAA;AAAA;AAAA,EAEtC,OAAA;AAAA,EAAS,SAAA;AAAA,EAAW,OAAA;AAAA,EAAS,SAAA;AAAA;AAAA,EAE7B,KAAA;AAAA,EAAO,YAAA;AAAA,EAAc,WAAA;AAAA;AAAA,EAErB,QAAA;AAAA,EAAU,aAAA;AAAA;AAAA,EAEV,g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AmB,UAAA,EAAY,MAAA,EAAQ,KAAK,CAAC,CAAA;AACrD;;;;"}
|
|
1
|
+
{"version":3,"file":"useComponentDefaults.js","sources":["../../../src/hooks/useComponentDefaults.ts"],"sourcesContent":["import {useMemo} from 'react';\nimport {useKitsTheme} from '../contexts/Theme';\n\n/**\n * Known element slot keys. When a config key matches one of these\n * AND the value has `props` or `style`, it is treated as an element slot.\n *\n * To add a new slot: add the key here AND to the relevant slot interface\n * in packages/types/src/Theme/types.ts (and to the `AllSlotKeys` union).\n *\n * The order below mirrors the typed slot hierarchy in\n * `packages/types/src/Theme/types.ts`.\n */\nconst ELEMENT_SLOT_KEYS = new Set([\n // ── Form-element slots ──────────────────────────────────\n // Base (all form elements — IFormElementBaseSlots)\n 'label', 'helperText', 'error',\n // Text input specific (ITextInputSlots — also shared by ISelectSlots)\n 'root', 'container', 'inputGroup', 'leftAddon', 'rightAddon',\n // Select specific (ISelectSlots — option-list popover)\n // Radio / Checkbox also use `item` / `itemSelected` / `itemDisabled` /\n // `itemHover` for the per-list-item wrapper, plus `itemInvalid`.\n 'panel', 'item', 'itemSelected', 'itemFocused', 'itemHover', 'itemDisabled', 'itemInvalid',\n // Chip-bearing selects (IChipInputSlots — MultiSelect display=\"chip\"\n // AND AutoComplete/Tags with isMultiple). `tokenContainer` is the\n // bordered box that holds the chips and the caret — see the docblock\n // on IChipInputSlots for why it is neither `root` nor `container`.\n 'tokenContainer', 'token', 'tokenIcon',\n // MultiSelect specific (IMultiSelectSlots — per-item checkbox)\n 'checkboxBox', 'checkboxBoxChecked', 'checkboxIcon',\n // Datepicker specific (IDatepickerSlots — calendar popup; `panel` shared with Select)\n 'calendarHeader', 'calendarNavButton', 'weekDay',\n 'dayCell', 'daySelected', 'dayToday', 'dayDisabled',\n // Switch specific (ISwitchSlots) — RENAMED from slider/sliderChecked/thumbChecked\n 'track', 'trackOn', 'thumb', 'thumbOn',\n // Checkbox specific (ICheckboxSlots)\n 'box', 'boxChecked', 'checkIcon',\n // Radio specific (IRadioSlots)\n 'circle', 'circleInner',\n // Radio + Checkbox: wrapper Flex around all list items\n 'itemsContainer',\n\n // ── Non-form component slots (untouched by the form-element refactor) ──\n // Card / Button / generic\n 'icon', 'header', 'title', 'subTitle', 'content', 'footer',\n // Button variants — `text` applies only to buttons with a label,\n // `iconOnly` applies only to icon-only buttons (so styling one never\n // affects the other).\n 'text', 'iconOnly',\n // Table\n 'th', 'headerRow', 'headerCell', 'body', 'bodyRow', 'bodyCell',\n 'wrapper', 'table', 'tbody',\n 'filterRow', 'filterCell', 'filterClearButton',\n 'columnFilter', 'columnFilterInput',\n 'tfoot', 'footerRow', 'footerCell', 'footer', 'paginator', 'emptyMessage',\n 'loadingOverlay', 'loadingIcon',\n 'rowGroupHeader', 'rowGroupHeaderName', 'rowExpansion', 'rowGroupFooter',\n 'rowGroupToggler', 'rowGroupTogglerIcon',\n 'resizeHelper',\n 'reorderIndicatorUp', 'reorderIndicatorUpIcon',\n 'reorderIndicatorDown', 'reorderIndicatorDownIcon',\n 'tableHeader', 'searchInput',\n 'paginatorPageButton', 'paginatorPageLink', 'paginatorActivePageButton',\n 'paginatorPageReport', 'paginatorRowsPerPage', 'paginatorRowsPerPageDropdown',\n 'paginatorPages',\n 'sortedColumn', 'stripedRow', 'selectedRow', 'selectedRowAccent',\n 'filterBar', 'filterInput', 'filterLabel',\n 'toolbarRight', 'toolbarButton', 'clearFilterButton', 'columnPicker',\n // Toolbar sizing + placeholder, and the chrome the table renders itself.\n // NOTE: a slot missing from this allowlist is silently dropped — theming\n // it has no effect at all — so every new slot must be listed here as\n // well as in its component's ITableElementSlots.\n 'toolbarControl', 'filterPlaceholder',\n 'topBar', 'bulkBar', 'bulkBarText',\n // ImageCropper (IImageCropperSlots). The other slots it uses — root,\n // container, header, title, content, footer, icon, text, mask, track,\n // thumb — are already in this set under the components that named them\n // first, which is the point of reusing those names.\n 'cropWindow', 'shade', 'gridLine', 'handle',\n 'zoomChip', 'previewFrame', 'dropZone', 'progressFill',\n // Accordion\n 'headerActive', 'headerHover',\n // Sidebar/Drawer\n 'headerTitle', 'closeButton', 'mask',\n // Group (repeatable field array)\n 'row', 'addButton', 'removeButton',\n // Header (app-shell top bar)\n 'toggleModeButton', 'avatarButton', 'breadcrumb',\n]);\n\nexport interface IElementConfig {\n style: Record<string, any>;\n /**\n * Extra attributes for this slot's element — `className`, `data-*`,\n * `aria-*`, anything the platform element accepts. Merged across the\n * whole chain (FormElement < baseGroup < component < instance slots),\n * with `className` CONCATENATED rather than replaced.\n */\n props: Record<string, any>;\n important?: boolean | string[];\n pseudo?: Record<string, Record<string, any>>;\n}\n\nexport interface UseComponentDefaultsResult<T> {\n /** Props with theme defaults merged in (user props always win) */\n mergedProps: T;\n /**\n * CSS style from root slot — backwards compat for components\n * that read themeStyle instead of elementStyles.root\n */\n themeStyle: Record<string, any>;\n /**\n * Per-element style maps. Each key is a slot name, value is the\n * merged IStyleClasses (not yet resolved to CSSProperties).\n * Use `useResolvedElementStyles(elementStyles)` to resolve.\n */\n elementStyles: Record<string, Record<string, any>>;\n /**\n * Per-element extra attributes. Each key is a slot name, value is the\n * merged `props` for that slot (`className`, `data-*`, `aria-*`, …).\n *\n * ⛔ EVERY SLOT, NOT JUST `root` — THAT WAS THE BUG. `IElementSlotConfig`\n * has advertised `props` on every slot since the slot system landed, but\n * only `root.props` was ever read (it is folded into `mergedProps`).\n * Anything a consumer put on another slot — the class a portal needs on a\n * tags field's outer box to make it match a text input — was parsed,\n * merged, and then thrown away with no warning and no type error.\n * Components apply `elementProps[slot]` to the matching element.\n */\n elementProps: Record<string, Record<string, any>>;\n /**\n * Full slot configs including `props`, `important` and `pseudo` fields.\n * Use this instead of `elementStyles` when you need those fields.\n */\n elementConfigs: Record<string, IElementConfig>;\n}\n\n/**\n * Merges slot `props` layers. Everything is last-wins EXCEPT `className`,\n * which is concatenated — a theme-level class and a consumer's class are\n * additive by nature, and dropping one of them is exactly the fault this\n * whole plumbing exists to fix.\n */\nfunction mergeSlotProps(layers: Array<Record<string, any> | undefined>): Record<string, any> {\n const out: Record<string, any> = {};\n const classes: string[] = [];\n for (const layer of layers) {\n if (!layer) continue;\n for (const [key, value] of Object.entries(layer)) {\n if (value === undefined) continue;\n if (key === 'className') {\n if (value) classes.push(String(value));\n } else {\n out[key] = value;\n }\n }\n }\n if (classes.length) {\n // De-duplicated, so a class repeated down the chain lands once.\n out.className = Array.from(new Set(classes.join(' ').split(/\\s+/).filter(Boolean))).join(' ');\n }\n return out;\n}\n\n/**\n * Merges theme-level component defaults with user-supplied props.\n *\n * Resolution chain (lowest → highest priority):\n * FormElement[slot] < baseGroup[slot] < component[slot] < instanceSlots[slot] < user props\n *\n * `FormElement` is the global base group for every form element\n * (label / helperText / error live there by default). It is applied\n * to every component regardless of whether a `baseGroup` is provided\n * — for non-form components like Button or Card, FormElement slots\n * are no-ops in practice because those components don't read\n * `elementStyles.label` / `helperText` / `error`.\n *\n * Element slots (`root`, `label`, `container`, etc.) are direct keys\n * on the component config. Each slot accepts `{ props?, style? }`.\n *\n * The `root` slot's `props` are merged into `mergedProps` alongside\n * user props (user always wins, except `className`, which concatenates).\n * The `root` slot's `style` is returned as both `themeStyle` (backwards\n * compat) and `elementStyles.root`.\n *\n * EVERY OTHER slot's `props` come back on `elementProps[slot]` — the\n * component is responsible for spreading them onto the element that slot\n * names. Before that existed, `props` on a non-root slot was silently\n * discarded, which is how a consumer's class on a tags field's outer box\n * disappeared without a single error.\n *\n * Supports base-group inheritance: e.g. `useComponentDefaults('InputText', rawProps, 'Input')`\n * merges FormElement first, then Input base, then InputText overrides,\n * then per-instance slots, then user props.\n *\n * @example\n * const { mergedProps, themeStyle, elementStyles } = useComponentDefaults('InputText', rawProps, 'Input');\n * // mergedProps → FormElement.root.props < Input.root.props < InputText.root.props < instanceSlots < user props\n * // elementStyles.label → FormElement.label.style < Input.label.style < InputText.label.style < instance label\n * // elementStyles.root → root element style (FormElement → Input → InputText → instance)\n * // elementStyles.container → container element style\n */\nexport default function useComponentDefaults<T extends Record<string, any>>(\n componentName: string,\n props: T,\n baseGroup?: string,\n): UseComponentDefaultsResult<T> {\n const {theme} = useKitsTheme();\n // Global base for every form element. Always looked up — if not\n // configured it is `undefined` and the merge contributes nothing.\n const formElementConfig = theme.components.FormElement;\n const baseConfig = baseGroup ? theme.components[baseGroup] : undefined;\n const config = theme.components[componentName];\n\n return useMemo(() => {\n // Extract per-instance slot overrides from props (IFormElement.slots passed through)\n const instanceSlots = (props as any).slots as Record<string, { props?: any; style?: any; important?: boolean | string[]; pseudo?: Record<string, Record<string, any>> }> | undefined;\n\n if (!config && !baseConfig && !instanceSlots && !formElementConfig) {\n return {mergedProps: props, themeStyle: {}, elementStyles: {}, elementProps: {}, elementConfigs: {}};\n }\n\n const formBase = (formElementConfig || {}) as Record<string, any>;\n const base = (baseConfig || {}) as Record<string, any>;\n const comp = (config || {}) as Record<string, any>;\n\n // --- Props merge: FormElement.root.props < base.root.props < config.root.props < instanceSlots.root.props < user props ---\n const merged = mergeSlotProps([\n formBase.root?.props,\n base.root?.props,\n comp.root?.props,\n instanceSlots?.root?.props,\n ]);\n\n const userClassName = typeof (props as any).className === 'string' ? (props as any).className : undefined;\n for (const key of Object.keys(props)) {\n // Skip 'slots' — it is consumed here, not forwarded\n if (key === 'slots') continue;\n // className is additive, not a replacement: a theme-level class on\n // `root.props` and the consumer's own class both have to survive.\n if (key === 'className') continue;\n if (props[key] !== undefined) {\n merged[key] = props[key];\n }\n }\n if (userClassName || merged.className) {\n merged.className = mergeSlotProps([\n {className: merged.className},\n {className: userClassName},\n ]).className;\n }\n\n // --- Element styles merge: FormElement[slot] < base[slot] < config[slot] < instanceSlots[slot] ---\n const allSlotKeys = new Set<string>();\n for (const key of Object.keys(formBase)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n for (const key of Object.keys(base)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n for (const key of Object.keys(comp)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n if (instanceSlots) {\n for (const key of Object.keys(instanceSlots)) {\n if (ELEMENT_SLOT_KEYS.has(key)) allSlotKeys.add(key);\n }\n }\n\n const elementStyles: Record<string, Record<string, any>> = {};\n const elementProps: Record<string, Record<string, any>> = {};\n const elementConfigs: Record<string, IElementConfig> = {};\n for (const slotKey of allSlotKeys) {\n const style = {\n ...(formBase[slotKey]?.style || {}),\n ...(base[slotKey]?.style || {}),\n ...(comp[slotKey]?.style || {}),\n ...(instanceSlots?.[slotKey]?.style || {}),\n };\n elementStyles[slotKey] = style;\n\n const slotProps = mergeSlotProps([\n formBase[slotKey]?.props,\n base[slotKey]?.props,\n comp[slotKey]?.props,\n instanceSlots?.[slotKey]?.props,\n ]);\n elementProps[slotKey] = slotProps;\n\n const pseudoMerged = {\n ...(formBase[slotKey]?.pseudo || {}),\n ...(base[slotKey]?.pseudo || {}),\n ...(comp[slotKey]?.pseudo || {}),\n ...(instanceSlots?.[slotKey]?.pseudo || {}),\n };\n elementConfigs[slotKey] = {\n style,\n props: slotProps,\n important:\n instanceSlots?.[slotKey]?.important ??\n comp[slotKey]?.important ??\n base[slotKey]?.important ??\n formBase[slotKey]?.important,\n pseudo: Object.keys(pseudoMerged).length > 0 ? pseudoMerged : undefined,\n };\n }\n\n // themeStyle = root element style (backwards compat)\n const themeStyle = elementStyles.root || {};\n\n return {\n mergedProps: merged as T,\n themeStyle,\n elementStyles,\n elementProps,\n elementConfigs,\n };\n }, [formElementConfig, baseConfig, config, props]);\n}\n"],"names":[],"mappings":";;;AAaA,MAAM,iBAAA,uBAAwB,GAAA,CAAI;AAAA;AAAA;AAAA,EAG9B,OAAA;AAAA,EAAS,YAAA;AAAA,EAAc,OAAA;AAAA;AAAA,EAEvB,MAAA;AAAA,EAAQ,WAAA;AAAA,EAAa,YAAA;AAAA,EAAc,WAAA;AAAA,EAAa,YAAA;AAAA;AAAA;AAAA;AAAA,EAIhD,OAAA;AAAA,EAA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AG,KAAA;AAAA,QACf,aAAA,GAAgB,OAAO,CAAA,EAAG;AAAA,OAC7B,CAAA;AACD,MAAA,YAAA,CAAa,OAAO,CAAA,GAAI,SAAA;AAExB,MAAA,MAAM,YAAA,GAAe;AAAA,QACjB,GAAI,QAAA,CAAS,OAAO,CAAA,EAAG,UAAU,EAAC;AAAA,QAClC,GAAI,IAAA,CAAK,OAAO,CAAA,EAAG,UAAU,EAAC;AAAA,QAC9B,GAAI,IAAA,CAAK,OAAO,CAAA,EAAG,UAAU,EAAC;AAAA,QAC9B,GAAI,aAAA,GAAgB,OAAO,CAAA,EAAG,UAAU;AAAC,OAC7C;AACA,MAAA,cAAA,CAAe,OAAO,CAAA,GAAI;AAAA,QACtB,KAAA;AAAA,QACA,KAAA,EAAO,SAAA;AAAA,QACP,SAAA,EACI,aAAA,GAAgB,OAAO,CAAA,EAAG,aAC1B,IAAA,CAAK,OAAO,CAAA,EAAG,SAAA,IACf,KAAK,OAAO,CAAA,EAAG,SAAA,IACf,QAAA,CAAS,OAAO,CAAA,EAAG,SAAA;AAAA,QACvB,QAAQ,MAAA,CAAO,IAAA,CAAK,YAAY,CAAA,CAAE,MAAA,GAAS,IAAI,YAAA,GAAe;AAAA,OAClE;AAAA,IACJ;AAGA,IAAA,MAAM,UAAA,GAAa,aAAA,CAAc,IAAA,IAAQ,EAAC;AAE1C,IAAA,OAAO;AAAA,MACH,WAAA,EAAa,MAAA;AAAA,MACb,UAAA;AAAA,MACA,aAAA;AAAA,MACA,YAAA;AAAA,MACA;AAAA,KACJ;AAAA,EACJ,GAAG,CAAC,iBAAA,EAAmB,UAAA,EAAY,MAAA,EAAQ,KAAK,CAAC,CAAA;AACrD;;;;"}
|
package/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index$1 = require('./primitives/Box/index.cjs');
|
|
4
|
-
var index_native$
|
|
4
|
+
var index_native$15 = require('./primitives/Text/index.cjs');
|
|
5
5
|
var index_native$o = require('./primitives/Heading/index.cjs');
|
|
6
6
|
var index_native$r = require('./primitives/Image/index.cjs');
|
|
7
7
|
var index_native$p = require('./primitives/Icon/index.cjs');
|
|
8
|
-
var index_native$
|
|
8
|
+
var index_native$O = require('./primitives/Loader/index.cjs');
|
|
9
9
|
var index_native$g = require('./primitives/Divider/index.cjs');
|
|
10
|
-
var index_native$
|
|
10
|
+
var index_native$Z = require('./primitives/Skeleton/index.cjs');
|
|
11
11
|
var index$l = require('./primitives/Svg/index.cjs');
|
|
12
|
-
var index_native$
|
|
12
|
+
var index_native$N = require('./primitives/Link/index.cjs');
|
|
13
13
|
var index_native$7 = require('./primitives/Card/index.cjs');
|
|
14
14
|
var index_native = require('./primitives/AccentEdge/index.cjs');
|
|
15
|
-
var index_native$
|
|
15
|
+
var index_native$1d = require('./primitives/Wash/index.cjs');
|
|
16
16
|
var index_native$i = require('./primitives/DotGrid/index.cjs');
|
|
17
|
-
var index_native$
|
|
17
|
+
var index_native$13 = require('./primitives/Striped/index.cjs');
|
|
18
18
|
var Button_native = require('./components/Button/Button.cjs');
|
|
19
19
|
require('react');
|
|
20
20
|
var index_native$4 = require('./components/Badge/index.cjs');
|
|
@@ -22,14 +22,14 @@ var index_native$9 = require('./components/Chip/index.cjs');
|
|
|
22
22
|
var accordion_native = require('./components/Accordion/accordion.cjs');
|
|
23
23
|
var index_native$2 = require('./components/Alert/index.cjs');
|
|
24
24
|
var index_native$6 = require('./components/BreadCrumb/index.cjs');
|
|
25
|
-
var index_native$
|
|
26
|
-
var index_native$
|
|
27
|
-
var index_native$
|
|
28
|
-
var index_native$
|
|
29
|
-
var index_native$
|
|
25
|
+
var index_native$z = require('./components/overlay/Dialog/index.cjs');
|
|
26
|
+
var index_native$v = require('./components/overlay/ConfirmDialog/index.cjs');
|
|
27
|
+
var index_native$w = require('./components/overlay/ConfirmPopup/index.cjs');
|
|
28
|
+
var index_native$L = require('./components/overlay/Toast/index.cjs');
|
|
29
|
+
var index_native$18 = require('./components/overlay/Tooltip/index.cjs');
|
|
30
30
|
var index_native$d = require('./components/overlay/Popover/index.cjs');
|
|
31
|
-
var index_native$
|
|
32
|
-
var index_native
|
|
31
|
+
var index_native$_ = require('./components/SkeletonRows/index.cjs');
|
|
32
|
+
var index_native$$ = require('./components/SkeletonText/index.cjs');
|
|
33
33
|
var index$5 = require('./components/DetailsList/index.cjs');
|
|
34
34
|
var index_native$a = require('./components/CircularProgress/index.cjs');
|
|
35
35
|
var index$n = require('./components/Translate/index.cjs');
|
|
@@ -37,72 +37,74 @@ var index$h = require('./components/SegmentedControl/index.cjs');
|
|
|
37
37
|
var index_native$c = require('./components/overlay/CommandPalette/index.cjs');
|
|
38
38
|
var index$j = require('./components/StatePill/index.cjs');
|
|
39
39
|
var index = require('./components/Avatar/index.cjs');
|
|
40
|
+
var index_native$s = require('./components/ImageCropper/index.cjs');
|
|
41
|
+
var encoderRegistry = require('./components/ImageCropper/encoderRegistry.cjs');
|
|
40
42
|
var index$k = require('./components/Stepper/index.cjs');
|
|
41
43
|
var index$i = require('./components/StatCard/index.cjs');
|
|
42
|
-
var index_native$
|
|
44
|
+
var index_native$W = require('./components/Rise/index.cjs');
|
|
43
45
|
var index_native$f = require('./components/Delta/index.cjs');
|
|
44
|
-
var index_native$
|
|
45
|
-
var index_native$
|
|
46
|
-
var index_native
|
|
47
|
-
var index_native$
|
|
46
|
+
var index_native$M = require('./components/Legend/index.cjs');
|
|
47
|
+
var index_native$17 = require('./components/Tip/index.cjs');
|
|
48
|
+
var index_native$10 = require('./components/Sparkline/index.cjs');
|
|
49
|
+
var index_native$T = require('./components/MetricCard/index.cjs');
|
|
48
50
|
var index_native$1 = require('./components/ActionCard/index.cjs');
|
|
49
|
-
var index_native$
|
|
50
|
-
var index_native$
|
|
51
|
-
var index_native$
|
|
51
|
+
var index_native$12 = require('./components/StatusCard/index.cjs');
|
|
52
|
+
var index_native$1e = require('./components/WidgetPanel/index.cjs');
|
|
53
|
+
var index_native$u = require('./components/BarChart/index.cjs');
|
|
52
54
|
var index_native$m = require('./components/GroupedBars/index.cjs');
|
|
53
|
-
var index_native$
|
|
54
|
-
var index_native$
|
|
55
|
+
var index_native$H = require('./components/LineChart/index.cjs');
|
|
56
|
+
var index_native$V = require('./components/RankedList/index.cjs');
|
|
55
57
|
var index_native$h = require('./components/Donut/index.cjs');
|
|
56
58
|
var index_native$k = require('./components/Gauge/index.cjs');
|
|
57
|
-
var index_native$
|
|
58
|
-
var index_native$
|
|
59
|
-
var index_native$
|
|
59
|
+
var index_native$11 = require('./components/StackedBars/index.cjs');
|
|
60
|
+
var index_native$J = require('./components/Radar/index.cjs');
|
|
61
|
+
var index_native$R = require('./components/MapTile/index.cjs');
|
|
60
62
|
var index$g = require('./components/ProgressBar/index.cjs');
|
|
61
63
|
var index$m = require('./components/Timeline/index.cjs');
|
|
62
64
|
var index$7 = require('./components/EmptyState/index.cjs');
|
|
63
|
-
var index_native$
|
|
65
|
+
var index_native$14 = require('./components/Tabs/index.cjs');
|
|
64
66
|
var index_native$5 = require('./components/BottomTabBar/index.cjs');
|
|
65
67
|
var index$9 = require('./components/Gallery/index.cjs');
|
|
66
68
|
var index_native$8 = require('./components/Carousel/index.cjs');
|
|
67
69
|
var index$3 = require('./components/ChatBubble/index.cjs');
|
|
68
|
-
var index_native$
|
|
70
|
+
var index_native$S = require('./components/MessageComposer/index.cjs');
|
|
69
71
|
var index$f = require('./components/MessageReceipt/index.cjs');
|
|
70
72
|
var index$4 = require('./components/DateSeparator/index.cjs');
|
|
71
|
-
var index_native$
|
|
72
|
-
var index_native$
|
|
73
|
-
var index_native$
|
|
74
|
-
var index_native$
|
|
75
|
-
var index_native$
|
|
76
|
-
var index_native$
|
|
77
|
-
var index_native$
|
|
78
|
-
var index_native$
|
|
79
|
-
var index_native$
|
|
80
|
-
var index_native$
|
|
73
|
+
var index_native$1b = require('./components/TypingIndicator/index.cjs');
|
|
74
|
+
var index_native$U = require('./components/PersonCard/index.cjs');
|
|
75
|
+
var index_native$x = require('./form/helpers/FormContainer/index.cjs');
|
|
76
|
+
var index_native$F = require('./form/inputs/InputText/index.cjs');
|
|
77
|
+
var index_native$D = require('./form/inputs/InputNumber/index.cjs');
|
|
78
|
+
var index_native$C = require('./form/inputs/InputMask/index.cjs');
|
|
79
|
+
var index_native$B = require('./form/inputs/ColorPicker/index.cjs');
|
|
80
|
+
var index_native$G = require('./form/inputs/InputTextarea/index.cjs');
|
|
81
|
+
var index_native$E = require('./form/inputs/InputPassword/index.cjs');
|
|
82
|
+
var index_native$I = require('./form/inputs/PhoneInput/index.cjs');
|
|
81
83
|
var index$c = require('./form/inputs/InputLocation/index.cjs');
|
|
82
|
-
var index_native$
|
|
83
|
-
var index_native$
|
|
84
|
-
var index_native$
|
|
84
|
+
var index_native$y = require('./form/inputs/Datepicker/index.cjs');
|
|
85
|
+
var index_native$t = require('./form/inputs/InputSwitch/index.cjs');
|
|
86
|
+
var index_native$K = require('./form/inputs/Slider/index.cjs');
|
|
85
87
|
var index$6 = require('./form/Editable/index.cjs');
|
|
86
88
|
var index$b = require('./form/controls/Checkbox/index.cjs');
|
|
87
89
|
var radio_native = require('./form/controls/RadioButton/radio.cjs');
|
|
88
|
-
var index_native$
|
|
89
|
-
var index_native$
|
|
90
|
+
var index_native$Y = require('./form/controls/SelectButton/index.cjs');
|
|
91
|
+
var index_native$1a = require('./form/controls/TriStateCheckbox/index.cjs');
|
|
90
92
|
var index$a = require('./form/selects/index.cjs');
|
|
91
93
|
var SelectContext = require('./form/selects/SelectContext.cjs');
|
|
92
|
-
var index_native$
|
|
94
|
+
var index_native$A = require('./form/file-pickers/index.cjs');
|
|
93
95
|
var label_native = require('./form/helpers/Label/label.cjs');
|
|
94
96
|
var index_native$l = require('./data/Table/index.cjs');
|
|
95
97
|
var index_native$e = require('./data/DataView/index.cjs');
|
|
96
|
-
var index_native$
|
|
97
|
-
var index_native$
|
|
98
|
-
var index_native$
|
|
99
|
-
var index_native$
|
|
98
|
+
var index_native$19 = require('./data/TreeView/index.cjs');
|
|
99
|
+
var index_native$P = require('./contexts/Locale/index.cjs');
|
|
100
|
+
var index_native$Q = require('./contexts/Main/index.cjs');
|
|
101
|
+
var index_native$16 = require('./contexts/Theme/index.cjs');
|
|
100
102
|
var DialogContext = require('./contexts/DialogContext.cjs');
|
|
101
103
|
var PermissionsContext = require('./contexts/PermissionsContext.cjs');
|
|
102
104
|
var BreadcrumbContext = require('./contexts/BreadcrumbContext.cjs');
|
|
103
105
|
var useSelectionController = require('./hooks/useSelectionController.cjs');
|
|
104
106
|
var useDisclosure = require('./hooks/useDisclosure.cjs');
|
|
105
|
-
var index_native$
|
|
107
|
+
var index_native$1h = require('./hooks/useScrollState/index.cjs');
|
|
106
108
|
var locale = require('./hooks/locale.cjs');
|
|
107
109
|
var main = require('./hooks/main.cjs');
|
|
108
110
|
var useComponentDefaults = require('./hooks/useComponentDefaults.cjs');
|
|
@@ -116,7 +118,7 @@ var useKeyboardNavigation_native = require('./hooks/useKeyboardNavigation.cjs');
|
|
|
116
118
|
var useFormFieldKeyboardNav_native = require('./hooks/useFormFieldKeyboardNav.cjs');
|
|
117
119
|
var useThemedFont = require('./hooks/useThemedFont.cjs');
|
|
118
120
|
var useRtlLineHeight = require('./hooks/useRtlLineHeight.cjs');
|
|
119
|
-
var index_native$
|
|
121
|
+
var index_native$1g = require('./hooks/useReducedMotion/index.cjs');
|
|
120
122
|
var useEnter = require('./hooks/useEnter.cjs');
|
|
121
123
|
var useCountUp = require('./hooks/useCountUp.cjs');
|
|
122
124
|
var useMeasuredWidth_native = require('./hooks/useMeasuredWidth.cjs');
|
|
@@ -128,7 +130,7 @@ var enums = require('./packages/types/src/Components/Molecules/Form/Base/enums.c
|
|
|
128
130
|
var filesIcons = require('./packages/types/src/Components/Molecules/Form/FilePicker/types/filesIcons.cjs');
|
|
129
131
|
var filesTypes = require('./packages/types/src/Components/Molecules/Form/FilePicker/types/filesTypes.cjs');
|
|
130
132
|
var fileValidation = require('./packages/types/src/Components/Molecules/Form/FilePicker/types/fileValidation.cjs');
|
|
131
|
-
var index_native$
|
|
133
|
+
var index_native$1f = require('./packages/types/src/Css/map/index.cjs');
|
|
132
134
|
var index_native$j = require('./packages/types/src/Css/constants/breakpoints/index.cjs');
|
|
133
135
|
var shadows = require('./packages/types/src/Theme/shadows.cjs');
|
|
134
136
|
var defaultTheme = require('./packages/types/src/Theme/defaultTheme.cjs');
|
|
@@ -149,8 +151,8 @@ var index_native$n = require('./layout/HStack/index.cjs');
|
|
|
149
151
|
var index$d = require('./layout/List/index.cjs');
|
|
150
152
|
var index$e = require('./layout/ListItem/index.cjs');
|
|
151
153
|
var RadiusPicker = require('./form/inputs/RadiusPicker/RadiusPicker.cjs');
|
|
152
|
-
var index_native$
|
|
153
|
-
var index_native$
|
|
154
|
+
var index_native$X = require('./layout/ScrollView/index.cjs');
|
|
155
|
+
var index_native$1c = require('./layout/VStack/index.cjs');
|
|
154
156
|
var alert_native = require('./components/Alert/alert.cjs');
|
|
155
157
|
var File = require('./utils/File.cjs');
|
|
156
158
|
var KitsThemeProvider_native = require('./contexts/Theme/KitsThemeProvider.cjs');
|
|
@@ -173,34 +175,34 @@ var useFormManager = require('./form-renderer/hooks/useFormManager.cjs');
|
|
|
173
175
|
|
|
174
176
|
|
|
175
177
|
exports.Box = index$1.default;
|
|
176
|
-
exports.Text = index_native$
|
|
178
|
+
exports.Text = index_native$15.default;
|
|
177
179
|
exports.Heading = index_native$o.default;
|
|
178
180
|
exports.Image = index_native$r.default;
|
|
179
181
|
exports.Icon = index_native$p.Icon;
|
|
180
|
-
exports.Loader = index_native$
|
|
182
|
+
exports.Loader = index_native$O.default;
|
|
181
183
|
exports.Divider = index_native$g.default;
|
|
182
|
-
exports.Skeleton = index_native$
|
|
184
|
+
exports.Skeleton = index_native$Z.default;
|
|
183
185
|
exports.Svg = index$l.default;
|
|
184
|
-
exports.Link = index_native$
|
|
186
|
+
exports.Link = index_native$N.default;
|
|
185
187
|
exports.Card = index_native$7.default;
|
|
186
188
|
exports.AccentEdge = index_native.default;
|
|
187
|
-
exports.Wash = index_native$
|
|
189
|
+
exports.Wash = index_native$1d.default;
|
|
188
190
|
exports.DotGrid = index_native$i.default;
|
|
189
|
-
exports.Striped = index_native$
|
|
191
|
+
exports.Striped = index_native$13.default;
|
|
190
192
|
exports.Button = Button_native.Button;
|
|
191
193
|
exports.Badge = index_native$4.Badge;
|
|
192
194
|
exports.Chip = index_native$9.Chip;
|
|
193
195
|
exports.Accordion = accordion_native.default;
|
|
194
196
|
exports.Alert = index_native$2.default;
|
|
195
197
|
exports.BreadCrumb = index_native$6.default;
|
|
196
|
-
exports.KitsDialog = index_native$
|
|
197
|
-
exports.KitsConfirm = index_native$
|
|
198
|
-
exports.KitsConfirmPopup = index_native$
|
|
199
|
-
exports.KitsToast = index_native$
|
|
200
|
-
exports.Tooltip = index_native$
|
|
198
|
+
exports.KitsDialog = index_native$z.default;
|
|
199
|
+
exports.KitsConfirm = index_native$v.default;
|
|
200
|
+
exports.KitsConfirmPopup = index_native$w.default;
|
|
201
|
+
exports.KitsToast = index_native$L.default;
|
|
202
|
+
exports.Tooltip = index_native$18.default;
|
|
201
203
|
exports.CustomPopover = index_native$d.default;
|
|
202
|
-
exports.SkeletonRows = index_native$
|
|
203
|
-
exports.SkeletonText = index_native
|
|
204
|
+
exports.SkeletonRows = index_native$_.default;
|
|
205
|
+
exports.SkeletonText = index_native$$.default;
|
|
204
206
|
exports.DetailsList = index$5.default;
|
|
205
207
|
exports.CircularProgress = index_native$a.default;
|
|
206
208
|
exports.Translate = index$n.default;
|
|
@@ -209,57 +211,60 @@ exports.CommandPalette = index_native$c.CommandPalette;
|
|
|
209
211
|
exports.StatePill = index$j.StatePill;
|
|
210
212
|
exports.Avatar = index.Avatar;
|
|
211
213
|
exports.AvatarStack = index.AvatarStack;
|
|
214
|
+
exports.ImageCropper = index_native$s.ImageCropper;
|
|
215
|
+
exports.hasCropEncoder = encoderRegistry.hasCropEncoder;
|
|
216
|
+
exports.setCropEncoder = encoderRegistry.setCropEncoder;
|
|
212
217
|
exports.Stepper = index$k.Stepper;
|
|
213
218
|
exports.StatCard = index$i.StatCard;
|
|
214
219
|
exports.StatGroup = index$i.StatGroup;
|
|
215
|
-
exports.Rise = index_native$
|
|
220
|
+
exports.Rise = index_native$W.default;
|
|
216
221
|
exports.Delta = index_native$f.default;
|
|
217
|
-
exports.Legend = index_native$
|
|
218
|
-
exports.Tip = index_native$
|
|
219
|
-
exports.Sparkline = index_native
|
|
220
|
-
exports.MetricCard = index_native$
|
|
222
|
+
exports.Legend = index_native$M.default;
|
|
223
|
+
exports.Tip = index_native$17.default;
|
|
224
|
+
exports.Sparkline = index_native$10.default;
|
|
225
|
+
exports.MetricCard = index_native$T.default;
|
|
221
226
|
exports.ActionCard = index_native$1.default;
|
|
222
|
-
exports.StatusCard = index_native$
|
|
223
|
-
exports.WidgetPanel = index_native$
|
|
224
|
-
exports.KitsBarChart = index_native$
|
|
227
|
+
exports.StatusCard = index_native$12.default;
|
|
228
|
+
exports.WidgetPanel = index_native$1e.default;
|
|
229
|
+
exports.KitsBarChart = index_native$u.default;
|
|
225
230
|
exports.GroupedBars = index_native$m.default;
|
|
226
|
-
exports.KitsLineChart = index_native$
|
|
227
|
-
exports.RankedList = index_native$
|
|
231
|
+
exports.KitsLineChart = index_native$H.default;
|
|
232
|
+
exports.RankedList = index_native$V.default;
|
|
228
233
|
exports.Donut = index_native$h.default;
|
|
229
234
|
exports.Gauge = index_native$k.default;
|
|
230
|
-
exports.StackedBars = index_native$
|
|
231
|
-
exports.KitsRadar = index_native$
|
|
232
|
-
exports.MapTile = index_native$
|
|
235
|
+
exports.StackedBars = index_native$11.default;
|
|
236
|
+
exports.KitsRadar = index_native$J.default;
|
|
237
|
+
exports.MapTile = index_native$R.default;
|
|
233
238
|
exports.ProgressBar = index$g.ProgressBar;
|
|
234
239
|
exports.Timeline = index$m.Timeline;
|
|
235
240
|
exports.EmptyState = index$7.EmptyState;
|
|
236
|
-
exports.Tabs = index_native$
|
|
241
|
+
exports.Tabs = index_native$14.Tabs;
|
|
237
242
|
exports.BottomTabBar = index_native$5.BottomTabBar;
|
|
238
243
|
exports.Gallery = index$9.Gallery;
|
|
239
244
|
exports.Carousel = index_native$8.Carousel;
|
|
240
245
|
exports.ChatBubble = index$3.ChatBubble;
|
|
241
|
-
exports.MessageComposer = index_native$
|
|
246
|
+
exports.MessageComposer = index_native$S.MessageComposer;
|
|
242
247
|
exports.MessageReceipt = index$f.MessageReceipt;
|
|
243
248
|
exports.DateSeparator = index$4.DateSeparator;
|
|
244
|
-
exports.TypingIndicator = index_native$
|
|
245
|
-
exports.PersonCard = index_native$
|
|
246
|
-
exports.KitsContainer = index_native$
|
|
247
|
-
exports.KitsInputText = index_native$
|
|
248
|
-
exports.KitsInputNumber = index_native$
|
|
249
|
-
exports.KitsInputMask = index_native$
|
|
250
|
-
exports.KitsInputColorPicker = index_native$
|
|
251
|
-
exports.KitsInputTextarea = index_native$
|
|
252
|
-
exports.KitsInputPassword = index_native$
|
|
253
|
-
exports.KitsPhoneComponent = index_native$
|
|
249
|
+
exports.TypingIndicator = index_native$1b.TypingIndicator;
|
|
250
|
+
exports.PersonCard = index_native$U.PersonCard;
|
|
251
|
+
exports.KitsContainer = index_native$x.default;
|
|
252
|
+
exports.KitsInputText = index_native$F.default;
|
|
253
|
+
exports.KitsInputNumber = index_native$D.default;
|
|
254
|
+
exports.KitsInputMask = index_native$C.default;
|
|
255
|
+
exports.KitsInputColorPicker = index_native$B.default;
|
|
256
|
+
exports.KitsInputTextarea = index_native$G.default;
|
|
257
|
+
exports.KitsInputPassword = index_native$E.default;
|
|
258
|
+
exports.KitsPhoneComponent = index_native$I.default;
|
|
254
259
|
exports.KitsInputLocation = index$c.default;
|
|
255
|
-
exports.KitsDatepicker = index_native$
|
|
256
|
-
exports.InputSwitch = index_native$
|
|
257
|
-
exports.KitsSliders = index_native$
|
|
260
|
+
exports.KitsDatepicker = index_native$y.default;
|
|
261
|
+
exports.InputSwitch = index_native$t.default;
|
|
262
|
+
exports.KitsSliders = index_native$K.default;
|
|
258
263
|
exports.Editable = index$6.default;
|
|
259
264
|
exports.KitsCheckboxes = index$b.default;
|
|
260
265
|
exports.KitsRadios = radio_native.default;
|
|
261
|
-
exports.SelectButton = index_native$
|
|
262
|
-
exports.TriStateCheckbox = index_native$
|
|
266
|
+
exports.SelectButton = index_native$Y.SelectButton;
|
|
267
|
+
exports.TriStateCheckbox = index_native$1a.TriStateCheckbox;
|
|
263
268
|
exports.KitsAutoComplete = index$a.KitsAutoComplete;
|
|
264
269
|
exports.KitsCascadeSelect = index$a.KitsCascadeSelect;
|
|
265
270
|
exports.KitsDropdown = index$a.KitsDropdown;
|
|
@@ -270,7 +275,7 @@ exports.MultiSelect = index$a.KitsMultiSelect;
|
|
|
270
275
|
exports.TreeSelect = index$a.KitsTreeSelect;
|
|
271
276
|
exports.FormSelect = SelectContext.default;
|
|
272
277
|
exports.Select = SelectContext.default;
|
|
273
|
-
exports.KitsFilePicker = index_native$
|
|
278
|
+
exports.KitsFilePicker = index_native$A.default;
|
|
274
279
|
exports.Label = label_native.default;
|
|
275
280
|
exports.GoTable = index_native$l.default;
|
|
276
281
|
exports.TableContext = index_native$l.TableContext;
|
|
@@ -280,13 +285,13 @@ exports.useTable = index_native$l.useTable;
|
|
|
280
285
|
exports.DataView = index_native$e.default;
|
|
281
286
|
exports.DataViewContext = index_native$e.DataViewContext;
|
|
282
287
|
exports.useDataView = index_native$e.useDataView;
|
|
283
|
-
exports.TreeView = index_native$
|
|
284
|
-
exports.LocaleContext = index_native$
|
|
285
|
-
exports.LocaleContextProvider = index_native$
|
|
286
|
-
exports.MainContext = index_native$
|
|
287
|
-
exports.MainContextProvider = index_native$
|
|
288
|
-
exports.ThemeContextProvider = index_native$
|
|
289
|
-
exports.useTheme = index_native$
|
|
288
|
+
exports.TreeView = index_native$19.default;
|
|
289
|
+
exports.LocaleContext = index_native$P.LocaleContext;
|
|
290
|
+
exports.LocaleContextProvider = index_native$P.default;
|
|
291
|
+
exports.MainContext = index_native$Q.MainContext;
|
|
292
|
+
exports.MainContextProvider = index_native$Q.default;
|
|
293
|
+
exports.ThemeContextProvider = index_native$16.default;
|
|
294
|
+
exports.useTheme = index_native$16.useTheme;
|
|
290
295
|
exports.useDialog = DialogContext.useDialog;
|
|
291
296
|
exports.usePopup = DialogContext.usePopup;
|
|
292
297
|
exports.PermissionsProvider = PermissionsContext.default;
|
|
@@ -295,7 +300,7 @@ exports.BreadcrumbProvider = BreadcrumbContext.default;
|
|
|
295
300
|
exports.useBreadcrumb = BreadcrumbContext.useBreadcrumb;
|
|
296
301
|
exports.useSelectionController = useSelectionController.default;
|
|
297
302
|
exports.useDisclosure = useDisclosure.default;
|
|
298
|
-
exports.useScrollState = index_native$
|
|
303
|
+
exports.useScrollState = index_native$1h.default;
|
|
299
304
|
exports.useLanguage = locale.useLanguage;
|
|
300
305
|
exports.useKitsConcerto = main.useKitsConcerto;
|
|
301
306
|
exports.useComponentDefaults = useComponentDefaults.default;
|
|
@@ -313,7 +318,7 @@ exports.useKeyboardNavProvider = useKeyboardNavigation_native.useKeyboardNavProv
|
|
|
313
318
|
exports.useFormFieldKeyboardNav = useFormFieldKeyboardNav_native.useFormFieldKeyboardNav;
|
|
314
319
|
exports.useThemedFont = useThemedFont.default;
|
|
315
320
|
exports.useRtlLineHeight = useRtlLineHeight.default;
|
|
316
|
-
exports.useReducedMotion = index_native$
|
|
321
|
+
exports.useReducedMotion = index_native$1g.useReducedMotion;
|
|
317
322
|
exports.useEnter = useEnter.default;
|
|
318
323
|
exports.useCountUp = useCountUp.default;
|
|
319
324
|
exports.useMeasuredWidth = useMeasuredWidth_native.default;
|
|
@@ -336,13 +341,13 @@ exports.imagesMemes = filesTypes.imagesMemes;
|
|
|
336
341
|
exports.imagesTypes = filesTypes.imagesTypes;
|
|
337
342
|
exports.toMemes = filesTypes.toMemes;
|
|
338
343
|
exports.fileValidation = fileValidation.fileValidation;
|
|
339
|
-
exports.borderProperties = index_native$
|
|
340
|
-
exports.listingProperties = index_native$
|
|
341
|
-
exports.mapCssProperties = index_native$
|
|
342
|
-
exports.nonPxProperties = index_native$
|
|
343
|
-
exports.propertiesWithoutCssEquivalent = index_native$
|
|
344
|
-
exports.pxProperties = index_native$
|
|
345
|
-
exports.sizingProperties = index_native$
|
|
344
|
+
exports.borderProperties = index_native$1f.borderProperties;
|
|
345
|
+
exports.listingProperties = index_native$1f.listingProperties;
|
|
346
|
+
exports.mapCssProperties = index_native$1f.default;
|
|
347
|
+
exports.nonPxProperties = index_native$1f.nonPxProperties;
|
|
348
|
+
exports.propertiesWithoutCssEquivalent = index_native$1f.propertiesWithoutCssEquivalent;
|
|
349
|
+
exports.pxProperties = index_native$1f.pxProperties;
|
|
350
|
+
exports.sizingProperties = index_native$1f.sizingProperties;
|
|
346
351
|
exports.FIELD_LABEL_MARGIN = index_native$j.FIELD_LABEL_MARGIN;
|
|
347
352
|
exports.FIELD_MARGIN = index_native$j.FIELD_MARGIN;
|
|
348
353
|
exports.GUTTER = index_native$j.GUTTER;
|
|
@@ -383,8 +388,8 @@ exports.List = index$d.default;
|
|
|
383
388
|
exports.ListItem = index$e.default;
|
|
384
389
|
exports.KitsRadiusPicker = RadiusPicker.RadiusPicker;
|
|
385
390
|
exports.RadiusPicker = RadiusPicker.RadiusPicker;
|
|
386
|
-
exports.ScrollView = index_native$
|
|
387
|
-
exports.VStack = index_native$
|
|
391
|
+
exports.ScrollView = index_native$X.default;
|
|
392
|
+
exports.VStack = index_native$1c.default;
|
|
388
393
|
exports.AlertDescription = alert_native.AlertDescription;
|
|
389
394
|
exports.AlertIcon = alert_native.AlertIcon;
|
|
390
395
|
exports.AlertTitle = alert_native.AlertTitle;
|
package/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|