@nswds/app 2.0.1 → 3.0.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/README.md +13 -6
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +17 -10
package/dist/index.d.cts
CHANGED
|
@@ -5607,7 +5607,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
5607
5607
|
}, {
|
|
5608
5608
|
background: string;
|
|
5609
5609
|
bar: string;
|
|
5610
|
-
}, tailwind_variants.
|
|
5610
|
+
}, tailwind_variants.TVReturnTypeLike<{
|
|
5611
5611
|
variant: {
|
|
5612
5612
|
default: {
|
|
5613
5613
|
background: string;
|
|
@@ -5633,7 +5633,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
5633
5633
|
}, {
|
|
5634
5634
|
background: string;
|
|
5635
5635
|
bar: string;
|
|
5636
|
-
}
|
|
5636
|
+
}>>;
|
|
5637
5637
|
interface ProgressBarProps extends react__default.HTMLProps<HTMLDivElement>, VariantProps$1<typeof progressBarVariants> {
|
|
5638
5638
|
value?: number;
|
|
5639
5639
|
max?: number;
|
|
@@ -5694,7 +5694,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
5694
5694
|
}, {
|
|
5695
5695
|
background: string;
|
|
5696
5696
|
circle: string;
|
|
5697
|
-
}, tailwind_variants.
|
|
5697
|
+
}, tailwind_variants.TVReturnTypeLike<{
|
|
5698
5698
|
variant: {
|
|
5699
5699
|
default: {
|
|
5700
5700
|
background: string;
|
|
@@ -5720,7 +5720,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
5720
5720
|
}, {
|
|
5721
5721
|
background: string;
|
|
5722
5722
|
circle: string;
|
|
5723
|
-
}
|
|
5723
|
+
}>>;
|
|
5724
5724
|
interface ProgressCircleProps extends Omit<react__default.SVGProps<SVGSVGElement>, 'value'>, VariantProps$1<typeof progressCircleVariants> {
|
|
5725
5725
|
value?: number;
|
|
5726
5726
|
max?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -5607,7 +5607,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
5607
5607
|
}, {
|
|
5608
5608
|
background: string;
|
|
5609
5609
|
bar: string;
|
|
5610
|
-
}, tailwind_variants.
|
|
5610
|
+
}, tailwind_variants.TVReturnTypeLike<{
|
|
5611
5611
|
variant: {
|
|
5612
5612
|
default: {
|
|
5613
5613
|
background: string;
|
|
@@ -5633,7 +5633,7 @@ declare const progressBarVariants: tailwind_variants.TVReturnType<{
|
|
|
5633
5633
|
}, {
|
|
5634
5634
|
background: string;
|
|
5635
5635
|
bar: string;
|
|
5636
|
-
}
|
|
5636
|
+
}>>;
|
|
5637
5637
|
interface ProgressBarProps extends react__default.HTMLProps<HTMLDivElement>, VariantProps$1<typeof progressBarVariants> {
|
|
5638
5638
|
value?: number;
|
|
5639
5639
|
max?: number;
|
|
@@ -5694,7 +5694,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
5694
5694
|
}, {
|
|
5695
5695
|
background: string;
|
|
5696
5696
|
circle: string;
|
|
5697
|
-
}, tailwind_variants.
|
|
5697
|
+
}, tailwind_variants.TVReturnTypeLike<{
|
|
5698
5698
|
variant: {
|
|
5699
5699
|
default: {
|
|
5700
5700
|
background: string;
|
|
@@ -5720,7 +5720,7 @@ declare const progressCircleVariants: tailwind_variants.TVReturnType<{
|
|
|
5720
5720
|
}, {
|
|
5721
5721
|
background: string;
|
|
5722
5722
|
circle: string;
|
|
5723
|
-
}
|
|
5723
|
+
}>>;
|
|
5724
5724
|
interface ProgressCircleProps extends Omit<react__default.SVGProps<SVGSVGElement>, 'value'>, VariantProps$1<typeof progressCircleVariants> {
|
|
5725
5725
|
value?: number;
|
|
5726
5726
|
max?: number;
|
package/dist/index.js
CHANGED
|
@@ -14414,7 +14414,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14414
14414
|
|
|
14415
14415
|
// package.json
|
|
14416
14416
|
var package_default = {
|
|
14417
|
-
version: "
|
|
14417
|
+
version: "3.0.0"};
|
|
14418
14418
|
var SluggerContext = React5__default.createContext(null);
|
|
14419
14419
|
function flattenText(nodes) {
|
|
14420
14420
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -18942,10 +18942,8 @@ var acceleratedValues = /* @__PURE__ */ new Set([
|
|
|
18942
18942
|
"opacity",
|
|
18943
18943
|
"clipPath",
|
|
18944
18944
|
"filter",
|
|
18945
|
-
"transform"
|
|
18946
|
-
|
|
18947
|
-
// or until we implement support for linear() easing.
|
|
18948
|
-
// "background-color"
|
|
18945
|
+
"transform",
|
|
18946
|
+
"backgroundColor"
|
|
18949
18947
|
]);
|
|
18950
18948
|
|
|
18951
18949
|
// node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs
|
|
@@ -18976,7 +18974,7 @@ var supportsWaapi = /* @__PURE__ */ memo(() => Object.hasOwnProperty.call(Elemen
|
|
|
18976
18974
|
function supportsBrowserAnimation(options) {
|
|
18977
18975
|
const { motionValue: motionValue2, name, repeatDelay, repeatType, damping, type, keyframes: keyframes2 } = options;
|
|
18978
18976
|
const subject = motionValue2?.owner?.current;
|
|
18979
|
-
if (!(subject instanceof HTMLElement)) {
|
|
18977
|
+
if (!(subject instanceof HTMLElement) && !(subject instanceof SVGElement)) {
|
|
18980
18978
|
return false;
|
|
18981
18979
|
}
|
|
18982
18980
|
const { onUpdate, transformTemplate } = motionValue2.owner.getProps();
|
|
@@ -21333,6 +21331,10 @@ var HTMLVisualElement = class extends DOMVisualElement {
|
|
|
21333
21331
|
this.type = "html";
|
|
21334
21332
|
this.renderInstance = renderHTML;
|
|
21335
21333
|
}
|
|
21334
|
+
mount(instance) {
|
|
21335
|
+
invariant(Boolean(instance.style), "motion.create() components must forward their ref to a HTML or SVG element", "custom-component-ref");
|
|
21336
|
+
super.mount(instance);
|
|
21337
|
+
}
|
|
21336
21338
|
readValueFromInstance(instance, key) {
|
|
21337
21339
|
if (transformProps.has(key)) {
|
|
21338
21340
|
return this.projection?.isProjecting ? defaultTransformValue(key) : readTransformValue(instance, key);
|