@pibit.ai/cure-design-system 0.6.0 → 0.6.2
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/applications/progressive-loading-indicator/index.d.ts +2 -0
- package/dist/applications/progressive-loading-indicator/index.d.ts.map +1 -0
- package/dist/applications/progressive-loading-indicator/progressive-loading-indicator.d.ts +26 -0
- package/dist/applications/progressive-loading-indicator/progressive-loading-indicator.d.ts.map +1 -0
- package/dist/applications/progressive-loading-indicator/progressive-loading-indicator.js +77 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -122
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +12 -0
- package/dist/primitives/button/button.d.ts.map +1 -1
- package/dist/primitives/button/button.js +3 -4
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useState as o } from "react";
|
|
2
|
+
import { hasReducedMotionListener as r, prefersReducedMotion as t } from "../../../../../motion-dom/dist/es/render/utils/reduced-motion/state.js";
|
|
3
|
+
import { initPrefersReducedMotion as n } from "../../../../../motion-dom/dist/es/render/utils/reduced-motion/index.js";
|
|
4
|
+
import { warnOnce as i } from "../../../../../motion-utils/dist/es/warn-once.js";
|
|
5
|
+
function a() {
|
|
6
|
+
!r.current && n();
|
|
7
|
+
const [e] = o(t.current);
|
|
8
|
+
return process.env.NODE_ENV !== "production" && i(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), e;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
a as useReducedMotion
|
|
12
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/primitives/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,EAA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C;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,WACf,SAAQ,WAAW,EACnB,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,EAAE,iBAAiB,CAAC;IACrG,yCAAyC;IACzC,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,UAAU,SACR,SAAQ,WAAW,EACnB,iBAAiB,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAAI;AAElG,0CAA0C;AAC1C,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,SAAS,CAAC;AAE5C,eAAO,MAAM,MAAM;uPAehB,KAAK;;CAgGP,CAAC"}
|
|
@@ -65,10 +65,9 @@ const t = q({
|
|
|
65
65
|
},
|
|
66
66
|
secondary: {
|
|
67
67
|
root: [
|
|
68
|
-
"bg-
|
|
69
|
-
// Disabled
|
|
70
|
-
|
|
71
|
-
"disabled:ring-disabled_subtle",
|
|
68
|
+
"bg-secondary text-secondary hover:bg-secondary_hover hover:text-secondary_hover data-loading:bg-secondary_hover",
|
|
69
|
+
// Disabled secondary buttons retain their gray background.
|
|
70
|
+
"disabled:bg-secondary",
|
|
72
71
|
// Icon styles
|
|
73
72
|
"*:data-icon:text-fg-quaternary hover:*:data-icon:text-fg-quaternary_hover"
|
|
74
73
|
].join(" ")
|