@almadar/ui 4.33.0 → 4.35.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/avl/index.cjs +22 -7
- package/dist/avl/index.css +1 -1
- package/dist/avl/index.js +22 -7
- package/dist/components/atoms/FilterPill.d.ts +18 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/index.cjs +4260 -1417
- package/dist/components/index.css +1 -1
- package/dist/components/index.js +3364 -521
- package/dist/components/molecules/BranchingLogicBuilder.d.ts +23 -0
- package/dist/components/molecules/LikertScale.d.ts +29 -0
- package/dist/components/molecules/MapView.d.ts +22 -0
- package/dist/components/molecules/MatrixQuestion.d.ts +29 -0
- package/dist/components/molecules/OptionConstraintGroup.d.ts +38 -0
- package/dist/components/molecules/PositionedCanvas.d.ts +32 -0
- package/dist/components/molecules/QrScanner.d.ts +17 -0
- package/dist/components/molecules/ReplyTree.d.ts +29 -0
- package/dist/components/molecules/RichBlockEditor.d.ts +27 -0
- package/dist/components/molecules/VersionDiff.d.ts +44 -0
- package/dist/components/molecules/VoteStack.d.ts +23 -0
- package/dist/components/molecules/index.d.ts +11 -1
- package/dist/docs/index.cjs +2 -2
- package/dist/docs/index.js +2 -2
- package/dist/marketing/index.cjs +2 -2
- package/dist/marketing/index.js +2 -2
- package/dist/providers/index.cjs +18 -3
- package/dist/providers/index.css +1 -1
- package/dist/providers/index.js +18 -3
- package/dist/runtime/index.cjs +18 -3
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/index.js +18 -3
- package/package.json +14 -8
package/dist/avl/index.cjs
CHANGED
|
@@ -182,7 +182,7 @@ var init_types = __esm({
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
// node_modules
|
|
185
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
186
186
|
function r(e) {
|
|
187
187
|
var t, f, n = "";
|
|
188
188
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -197,11 +197,11 @@ function clsx() {
|
|
|
197
197
|
return n;
|
|
198
198
|
}
|
|
199
199
|
var init_clsx = __esm({
|
|
200
|
-
"node_modules
|
|
200
|
+
"node_modules/clsx/dist/clsx.mjs"() {
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
|
|
204
|
-
// node_modules
|
|
204
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
205
205
|
function twJoin() {
|
|
206
206
|
let index = 0;
|
|
207
207
|
let argument;
|
|
@@ -245,7 +245,7 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
|
245
245
|
}
|
|
246
246
|
var CLASS_PART_SEPARATOR, createClassGroupUtils, getGroupRecursive, arbitraryPropertyRegex, getGroupIdForArbitraryProperty, createClassMap, processClassesRecursively, getPart, isThemeGetter, getPrefixedClassGroupEntries, createLruCache, IMPORTANT_MODIFIER, createParseClassName, sortModifiers, createConfigUtils, SPLIT_CLASSES_REGEX, mergeClassList, toValue, fromTheme, arbitraryValueRegex, fractionRegex, stringLengths, tshirtUnitRegex, lengthUnitRegex, colorFunctionRegex, shadowRegex, imageRegex, isLength, isArbitraryLength, isNumber, isArbitraryNumber, isInteger, isPercent, isArbitraryValue, isTshirtSize, sizeLabels, isArbitrarySize, isArbitraryPosition, imageLabels, isArbitraryImage, isArbitraryShadow, isAny, getIsArbitraryValue, isLengthOnly, isNever, isShadow, isImage, getDefaultConfig, twMerge;
|
|
247
247
|
var init_bundle_mjs = __esm({
|
|
248
|
-
"node_modules
|
|
248
|
+
"node_modules/tailwind-merge/dist/bundle-mjs.mjs"() {
|
|
249
249
|
CLASS_PART_SEPARATOR = "-";
|
|
250
250
|
createClassGroupUtils = (config) => {
|
|
251
251
|
const classMap = createClassMap(config);
|
|
@@ -10201,7 +10201,7 @@ var init_MapView = __esm({
|
|
|
10201
10201
|
import('leaflet')
|
|
10202
10202
|
]);
|
|
10203
10203
|
await import('leaflet/dist/leaflet.css');
|
|
10204
|
-
const { MapContainer, TileLayer, Marker, Popup, useMap } = reactLeaflet;
|
|
10204
|
+
const { MapContainer, TileLayer, Marker, Polyline, Popup, useMap } = reactLeaflet;
|
|
10205
10205
|
const L = leafletMod.default;
|
|
10206
10206
|
const defaultIcon = L.icon({
|
|
10207
10207
|
iconUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",
|
|
@@ -10244,6 +10244,7 @@ var init_MapView = __esm({
|
|
|
10244
10244
|
}
|
|
10245
10245
|
function MapViewInner({
|
|
10246
10246
|
markers = [],
|
|
10247
|
+
routes = [],
|
|
10247
10248
|
centerLat = 51.505,
|
|
10248
10249
|
centerLng = -0.09,
|
|
10249
10250
|
zoom = 13,
|
|
@@ -10312,6 +10313,20 @@ var init_MapView = __esm({
|
|
|
10312
10313
|
] }) : null
|
|
10313
10314
|
},
|
|
10314
10315
|
marker.id
|
|
10316
|
+
)),
|
|
10317
|
+
routes.map((route) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10318
|
+
Polyline,
|
|
10319
|
+
{
|
|
10320
|
+
positions: route.waypoints.map((wp) => [wp.lat, wp.lng]),
|
|
10321
|
+
pathOptions: {
|
|
10322
|
+
color: route.color ?? "var(--primary, #2563eb)",
|
|
10323
|
+
weight: route.weight ?? 4,
|
|
10324
|
+
opacity: route.opacity ?? 0.8,
|
|
10325
|
+
dashArray: route.dashArray
|
|
10326
|
+
},
|
|
10327
|
+
children: route.label ? /* @__PURE__ */ jsxRuntime.jsx(Popup, { children: /* @__PURE__ */ jsxRuntime.jsx(Typography2, { variant: "body2", children: route.label }) }) : null
|
|
10328
|
+
},
|
|
10329
|
+
route.id
|
|
10315
10330
|
))
|
|
10316
10331
|
]
|
|
10317
10332
|
},
|
|
@@ -12838,9 +12853,9 @@ var init_ScaledDiagram = __esm({
|
|
|
12838
12853
|
}
|
|
12839
12854
|
});
|
|
12840
12855
|
|
|
12841
|
-
// node_modules
|
|
12856
|
+
// node_modules/katex/dist/katex.min.css
|
|
12842
12857
|
var init_katex_min = __esm({
|
|
12843
|
-
"node_modules
|
|
12858
|
+
"node_modules/katex/dist/katex.min.css"() {
|
|
12844
12859
|
}
|
|
12845
12860
|
});
|
|
12846
12861
|
var MarkdownContent;
|
package/dist/avl/index.css
CHANGED
package/dist/avl/index.js
CHANGED
|
@@ -136,7 +136,7 @@ var init_types = __esm({
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
-
// node_modules
|
|
139
|
+
// node_modules/clsx/dist/clsx.mjs
|
|
140
140
|
function r(e) {
|
|
141
141
|
var t, f, n = "";
|
|
142
142
|
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
@@ -151,11 +151,11 @@ function clsx() {
|
|
|
151
151
|
return n;
|
|
152
152
|
}
|
|
153
153
|
var init_clsx = __esm({
|
|
154
|
-
"node_modules
|
|
154
|
+
"node_modules/clsx/dist/clsx.mjs"() {
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
// node_modules
|
|
158
|
+
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
159
159
|
function twJoin() {
|
|
160
160
|
let index = 0;
|
|
161
161
|
let argument;
|
|
@@ -199,7 +199,7 @@ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
|
|
199
199
|
}
|
|
200
200
|
var CLASS_PART_SEPARATOR, createClassGroupUtils, getGroupRecursive, arbitraryPropertyRegex, getGroupIdForArbitraryProperty, createClassMap, processClassesRecursively, getPart, isThemeGetter, getPrefixedClassGroupEntries, createLruCache, IMPORTANT_MODIFIER, createParseClassName, sortModifiers, createConfigUtils, SPLIT_CLASSES_REGEX, mergeClassList, toValue, fromTheme, arbitraryValueRegex, fractionRegex, stringLengths, tshirtUnitRegex, lengthUnitRegex, colorFunctionRegex, shadowRegex, imageRegex, isLength, isArbitraryLength, isNumber, isArbitraryNumber, isInteger, isPercent, isArbitraryValue, isTshirtSize, sizeLabels, isArbitrarySize, isArbitraryPosition, imageLabels, isArbitraryImage, isArbitraryShadow, isAny, getIsArbitraryValue, isLengthOnly, isNever, isShadow, isImage, getDefaultConfig, twMerge;
|
|
201
201
|
var init_bundle_mjs = __esm({
|
|
202
|
-
"node_modules
|
|
202
|
+
"node_modules/tailwind-merge/dist/bundle-mjs.mjs"() {
|
|
203
203
|
CLASS_PART_SEPARATOR = "-";
|
|
204
204
|
createClassGroupUtils = (config) => {
|
|
205
205
|
const classMap = createClassMap(config);
|
|
@@ -10155,7 +10155,7 @@ var init_MapView = __esm({
|
|
|
10155
10155
|
import('leaflet')
|
|
10156
10156
|
]);
|
|
10157
10157
|
await import('leaflet/dist/leaflet.css');
|
|
10158
|
-
const { MapContainer, TileLayer, Marker, Popup, useMap } = reactLeaflet;
|
|
10158
|
+
const { MapContainer, TileLayer, Marker, Polyline, Popup, useMap } = reactLeaflet;
|
|
10159
10159
|
const L = leafletMod.default;
|
|
10160
10160
|
const defaultIcon = L.icon({
|
|
10161
10161
|
iconUrl: "https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png",
|
|
@@ -10198,6 +10198,7 @@ var init_MapView = __esm({
|
|
|
10198
10198
|
}
|
|
10199
10199
|
function MapViewInner({
|
|
10200
10200
|
markers = [],
|
|
10201
|
+
routes = [],
|
|
10201
10202
|
centerLat = 51.505,
|
|
10202
10203
|
centerLng = -0.09,
|
|
10203
10204
|
zoom = 13,
|
|
@@ -10266,6 +10267,20 @@ var init_MapView = __esm({
|
|
|
10266
10267
|
] }) : null
|
|
10267
10268
|
},
|
|
10268
10269
|
marker.id
|
|
10270
|
+
)),
|
|
10271
|
+
routes.map((route) => /* @__PURE__ */ jsx(
|
|
10272
|
+
Polyline,
|
|
10273
|
+
{
|
|
10274
|
+
positions: route.waypoints.map((wp) => [wp.lat, wp.lng]),
|
|
10275
|
+
pathOptions: {
|
|
10276
|
+
color: route.color ?? "var(--primary, #2563eb)",
|
|
10277
|
+
weight: route.weight ?? 4,
|
|
10278
|
+
opacity: route.opacity ?? 0.8,
|
|
10279
|
+
dashArray: route.dashArray
|
|
10280
|
+
},
|
|
10281
|
+
children: route.label ? /* @__PURE__ */ jsx(Popup, { children: /* @__PURE__ */ jsx(Typography2, { variant: "body2", children: route.label }) }) : null
|
|
10282
|
+
},
|
|
10283
|
+
route.id
|
|
10269
10284
|
))
|
|
10270
10285
|
]
|
|
10271
10286
|
},
|
|
@@ -12792,9 +12807,9 @@ var init_ScaledDiagram = __esm({
|
|
|
12792
12807
|
}
|
|
12793
12808
|
});
|
|
12794
12809
|
|
|
12795
|
-
// node_modules
|
|
12810
|
+
// node_modules/katex/dist/katex.min.css
|
|
12796
12811
|
var init_katex_min = __esm({
|
|
12797
|
-
"node_modules
|
|
12812
|
+
"node_modules/katex/dist/katex.min.css"() {
|
|
12798
12813
|
}
|
|
12799
12814
|
});
|
|
12800
12815
|
var MarkdownContent;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type FilterPillVariant = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
3
|
+
export type FilterPillSize = "sm" | "md" | "lg";
|
|
4
|
+
export interface FilterPillProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "onClick"> {
|
|
5
|
+
variant?: FilterPillVariant;
|
|
6
|
+
size?: FilterPillSize;
|
|
7
|
+
/** Pill label text (alternative to children for schema-driven rendering). */
|
|
8
|
+
label?: string | number;
|
|
9
|
+
/** Optional icon name (Lucide icon string) or React node */
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
/** Called when the user clicks the remove (×) button */
|
|
12
|
+
onRemove?: () => void;
|
|
13
|
+
/** Disable the remove button (renders without × control) */
|
|
14
|
+
removable?: boolean;
|
|
15
|
+
/** Click handler for the body of the pill (filter toggle) */
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const FilterPill: React.ForwardRefExoticComponent<FilterPillProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -6,6 +6,7 @@ export { Select, type SelectProps, type SelectOption } from "./Select";
|
|
|
6
6
|
export { Checkbox, type CheckboxProps } from "./Checkbox";
|
|
7
7
|
export { Card, CardHeader, CardTitle, CardContent, CardBody, CardFooter, type CardProps, } from "./Card";
|
|
8
8
|
export { Badge, type BadgeProps, type BadgeVariant } from "./Badge";
|
|
9
|
+
export { FilterPill, type FilterPillProps, type FilterPillVariant, type FilterPillSize, } from "./FilterPill";
|
|
9
10
|
export { Spinner, type SpinnerProps } from "./Spinner";
|
|
10
11
|
export { Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, } from "./Avatar";
|
|
11
12
|
export { Box, type BoxProps, type BoxPadding, type BoxMargin, type BoxBg, type BoxRounded, type BoxShadow, } from "./Box";
|