@vinyasa/feedback 1.0.21

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.
Files changed (111) hide show
  1. package/README.md +134 -0
  2. package/dist/cjs/alert.cjs +286 -0
  3. package/dist/cjs/alert.css +51 -0
  4. package/dist/cjs/banner.cjs +270 -0
  5. package/dist/cjs/banner.css +37 -0
  6. package/dist/cjs/circular-progress.cjs +286 -0
  7. package/dist/cjs/circular-progress.css +30 -0
  8. package/dist/cjs/empty-state.cjs +165 -0
  9. package/dist/cjs/empty-state.css +7 -0
  10. package/dist/cjs/error-boundary.cjs +234 -0
  11. package/dist/cjs/error-boundary.css +7 -0
  12. package/dist/cjs/index.cjs +1763 -0
  13. package/dist/cjs/index.css +448 -0
  14. package/dist/cjs/inline-message.cjs +366 -0
  15. package/dist/cjs/inline-message.css +29 -0
  16. package/dist/cjs/loading-overlay.cjs +451 -0
  17. package/dist/cjs/loading-overlay.css +61 -0
  18. package/dist/cjs/progress-bar.cjs +163 -0
  19. package/dist/cjs/progress-bar.css +15 -0
  20. package/dist/cjs/skeleton.cjs +282 -0
  21. package/dist/cjs/skeleton.css +42 -0
  22. package/dist/cjs/spinner.cjs +329 -0
  23. package/dist/cjs/spinner.css +34 -0
  24. package/dist/cjs/toaster.cjs +377 -0
  25. package/dist/cjs/toaster.css +176 -0
  26. package/dist/esm/147.css +176 -0
  27. package/dist/esm/147.js +164 -0
  28. package/dist/esm/158.css +21 -0
  29. package/dist/esm/158.js +31 -0
  30. package/dist/esm/266.css +30 -0
  31. package/dist/esm/266.js +75 -0
  32. package/dist/esm/277.js +8 -0
  33. package/dist/esm/288.css +7 -0
  34. package/dist/esm/288.js +38 -0
  35. package/dist/esm/474.js +76 -0
  36. package/dist/esm/495.css +39 -0
  37. package/dist/esm/495.js +61 -0
  38. package/dist/esm/516.css +29 -0
  39. package/dist/esm/516.js +66 -0
  40. package/dist/esm/703.css +34 -0
  41. package/dist/esm/703.js +56 -0
  42. package/dist/esm/872.css +15 -0
  43. package/dist/esm/872.js +29 -0
  44. package/dist/esm/880.js +47 -0
  45. package/dist/esm/903.css +51 -0
  46. package/dist/esm/903.js +61 -0
  47. package/dist/esm/953.js +87 -0
  48. package/dist/esm/989.css +37 -0
  49. package/dist/esm/989.js +46 -0
  50. package/dist/esm/alert.d.ts +2 -0
  51. package/dist/esm/alert.js +1 -0
  52. package/dist/esm/banner.d.ts +2 -0
  53. package/dist/esm/banner.js +1 -0
  54. package/dist/esm/circular-progress.d.ts +2 -0
  55. package/dist/esm/circular-progress.js +1 -0
  56. package/dist/esm/components/alert/Alert.css.d.ts +24 -0
  57. package/dist/esm/components/alert/Alert.d.ts +14 -0
  58. package/dist/esm/components/alert/index.d.ts +1 -0
  59. package/dist/esm/components/banner/Banner.css.d.ts +21 -0
  60. package/dist/esm/components/banner/Banner.d.ts +12 -0
  61. package/dist/esm/components/banner/index.d.ts +1 -0
  62. package/dist/esm/components/circular-progress/CircularProgress.css.d.ts +4 -0
  63. package/dist/esm/components/circular-progress/CircularProgress.d.ts +17 -0
  64. package/dist/esm/components/circular-progress/index.d.ts +1 -0
  65. package/dist/esm/components/empty-state/EmptyState.css.d.ts +1 -0
  66. package/dist/esm/components/empty-state/EmptyState.d.ts +15 -0
  67. package/dist/esm/components/empty-state/index.d.ts +1 -0
  68. package/dist/esm/components/error-boundary/ErrorBoundary.d.ts +32 -0
  69. package/dist/esm/components/error-boundary/index.d.ts +1 -0
  70. package/dist/esm/components/inline-message/InlineMessage.css.d.ts +17 -0
  71. package/dist/esm/components/inline-message/InlineMessage.d.ts +10 -0
  72. package/dist/esm/components/inline-message/index.d.ts +1 -0
  73. package/dist/esm/components/loading-overlay/LoadingOverlay.css.d.ts +3 -0
  74. package/dist/esm/components/loading-overlay/LoadingOverlay.d.ts +11 -0
  75. package/dist/esm/components/loading-overlay/index.d.ts +1 -0
  76. package/dist/esm/components/progress-bar/ProgressBar.css.d.ts +2 -0
  77. package/dist/esm/components/progress-bar/ProgressBar.d.ts +12 -0
  78. package/dist/esm/components/progress-bar/index.d.ts +1 -0
  79. package/dist/esm/components/skeleton/Skeleton.css.d.ts +15 -0
  80. package/dist/esm/components/skeleton/Skeleton.d.ts +35 -0
  81. package/dist/esm/components/skeleton/index.d.ts +1 -0
  82. package/dist/esm/components/spinner/Spinner.css.d.ts +16 -0
  83. package/dist/esm/components/spinner/Spinner.d.ts +10 -0
  84. package/dist/esm/components/spinner/index.d.ts +1 -0
  85. package/dist/esm/components/toaster/ToastItemView.d.ts +7 -0
  86. package/dist/esm/components/toaster/Toaster.css.d.ts +59 -0
  87. package/dist/esm/components/toaster/Toaster.d.ts +10 -0
  88. package/dist/esm/components/toaster/index.d.ts +2 -0
  89. package/dist/esm/components/toaster/toastStore.d.ts +25 -0
  90. package/dist/esm/empty-state.d.ts +2 -0
  91. package/dist/esm/empty-state.js +1 -0
  92. package/dist/esm/error-boundary.d.ts +2 -0
  93. package/dist/esm/error-boundary.js +1 -0
  94. package/dist/esm/index.d.ts +12 -0
  95. package/dist/esm/index.js +11 -0
  96. package/dist/esm/inline-message.d.ts +2 -0
  97. package/dist/esm/inline-message.js +1 -0
  98. package/dist/esm/loading-overlay.d.ts +2 -0
  99. package/dist/esm/loading-overlay.js +1 -0
  100. package/dist/esm/polymorphic.d.ts +5 -0
  101. package/dist/esm/progress-bar.d.ts +2 -0
  102. package/dist/esm/progress-bar.js +1 -0
  103. package/dist/esm/skeleton.d.ts +2 -0
  104. package/dist/esm/skeleton.js +1 -0
  105. package/dist/esm/spacing.d.ts +19 -0
  106. package/dist/esm/spinner.d.ts +2 -0
  107. package/dist/esm/spinner.js +1 -0
  108. package/dist/esm/status.d.ts +4 -0
  109. package/dist/esm/toaster.d.ts +2 -0
  110. package/dist/esm/toaster.js +1 -0
  111. package/package.json +147 -0
@@ -0,0 +1,56 @@
1
+ import "./703.css";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { forwardRef } from "react";
4
+ import { createRuntimeFn } from "./953.js";
5
+ import { resolveSpacingStyle } from "./474.js";
6
+ var spinner = createRuntimeFn({
7
+ defaultClassName: '_8naz5u1',
8
+ variantClassNames: {
9
+ size: {
10
+ sm: '_8naz5u3',
11
+ md: '_8naz5u4',
12
+ lg: '_8naz5u5'
13
+ }
14
+ },
15
+ defaultVariants: {
16
+ size: 'md'
17
+ },
18
+ compoundVariants: []
19
+ });
20
+ const Spinner = /*#__PURE__*/ forwardRef(({ size, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, ...rest }, ref)=>{
21
+ const classes = className ? `${spinner({
22
+ size
23
+ })} ${className}` : spinner({
24
+ size
25
+ });
26
+ const computedStyle = {
27
+ ...resolveSpacingStyle({
28
+ m,
29
+ mt,
30
+ mr,
31
+ mb,
32
+ ml,
33
+ mx,
34
+ my,
35
+ p,
36
+ pt,
37
+ pr,
38
+ pb,
39
+ pl,
40
+ px,
41
+ py
42
+ }),
43
+ ...style
44
+ };
45
+ return /*#__PURE__*/ jsx("span", {
46
+ ref: ref,
47
+ role: "status",
48
+ "aria-label": "Loading",
49
+ className: classes,
50
+ style: computedStyle,
51
+ ...rest
52
+ });
53
+ });
54
+ Spinner.displayName = 'Spinner';
55
+ const spinner_Spinner = Spinner;
56
+ export { spinner_Spinner as Spinner };
@@ -0,0 +1,15 @@
1
+ ._1ie0lek0 {
2
+ background-color: var(--vinyasa-secondary);
3
+ border-radius: var(--vinyasa-radius-full);
4
+ width: 100%;
5
+ height: .5rem;
6
+ overflow: hidden;
7
+ }
8
+
9
+ ._1ie0lek1 {
10
+ background-color: var(--vinyasa-primary);
11
+ border-radius: var(--vinyasa-radius-full);
12
+ height: 100%;
13
+ transition: width var(--vinyasa-motion-duration-normal) var(--vinyasa-motion-easing-standard);
14
+ }
15
+
@@ -0,0 +1,29 @@
1
+ import "./872.css";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import box from "@vinyasa/layout/box";
4
+ import { forwardRef } from "react";
5
+ var fill = '_1ie0lek1';
6
+ var track = '_1ie0lek0';
7
+ const ProgressBar = /*#__PURE__*/ forwardRef(({ value, max = 100, className, style, ...rest }, ref)=>{
8
+ const classes = className ? `${track} ${className}` : track;
9
+ const percent = Math.min(100, Math.max(0, value / max * 100));
10
+ return /*#__PURE__*/ jsx(box, {
11
+ ref: ref,
12
+ role: "progressbar",
13
+ "aria-valuenow": value,
14
+ "aria-valuemin": 0,
15
+ "aria-valuemax": max,
16
+ className: classes,
17
+ style: style,
18
+ ...rest,
19
+ children: /*#__PURE__*/ jsx("div", {
20
+ className: fill,
21
+ style: {
22
+ width: `${String(percent)}%`
23
+ }
24
+ })
25
+ });
26
+ });
27
+ ProgressBar.displayName = 'ProgressBar';
28
+ const progress_bar_ProgressBar = ProgressBar;
29
+ export { progress_bar_ProgressBar as ProgressBar };
@@ -0,0 +1,47 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import _vinyasa_button from "@vinyasa/button";
3
+ import { Component } from "react";
4
+ import { EmptyState as empty_state_EmptyState } from "./288.js";
5
+ class ErrorBoundary extends Component {
6
+ state = {
7
+ error: null
8
+ };
9
+ static getDerivedStateFromError(error) {
10
+ return {
11
+ error
12
+ };
13
+ }
14
+ componentDidCatch(error, errorInfo) {
15
+ this.props.onError?.(error, errorInfo);
16
+ }
17
+ componentDidUpdate(prevProps) {
18
+ const { error } = this.state;
19
+ const { resetKeys } = this.props;
20
+ if (error && resetKeys && prevProps.resetKeys && resetKeys.some((key, index)=>key !== prevProps.resetKeys?.[index])) this.reset();
21
+ }
22
+ reset = ()=>{
23
+ this.props.onReset?.();
24
+ this.setState({
25
+ error: null
26
+ });
27
+ };
28
+ render() {
29
+ const { error } = this.state;
30
+ if (!error) return this.props.children;
31
+ const { fallback } = this.props;
32
+ if ('function' == typeof fallback) return fallback({
33
+ error,
34
+ resetErrorBoundary: this.reset
35
+ });
36
+ return fallback ?? /*#__PURE__*/ jsx(empty_state_EmptyState, {
37
+ title: "Something went wrong",
38
+ description: error.message,
39
+ action: /*#__PURE__*/ jsx(_vinyasa_button, {
40
+ onClick: this.reset,
41
+ children: "Try again"
42
+ })
43
+ });
44
+ }
45
+ }
46
+ const error_boundary_ErrorBoundary = ErrorBoundary;
47
+ export { error_boundary_ErrorBoundary as ErrorBoundary };
@@ -0,0 +1,51 @@
1
+ ._1313gq0 {
2
+ align-items: flex-start;
3
+ gap: var(--vinyasa-space3);
4
+ padding: var(--vinyasa-space4);
5
+ border-radius: var(--vinyasa-radius-md);
6
+ font-family: var(--vinyasa-font-family-sans);
7
+ display: flex;
8
+ }
9
+
10
+ ._1313gq1 {
11
+ background-color: var(--vinyasa-status-info-bg);
12
+ color: var(--vinyasa-status-info-text);
13
+ }
14
+
15
+ ._1313gq2 {
16
+ background-color: var(--vinyasa-status-success-bg);
17
+ color: var(--vinyasa-status-success-text);
18
+ }
19
+
20
+ ._1313gq3 {
21
+ background-color: var(--vinyasa-status-warning-bg);
22
+ color: var(--vinyasa-status-warning-text);
23
+ }
24
+
25
+ ._1313gq4 {
26
+ background-color: var(--vinyasa-status-error-bg);
27
+ color: var(--vinyasa-status-error-text);
28
+ }
29
+
30
+ ._1313gq5 {
31
+ flex-shrink: 0;
32
+ margin-top: .125em;
33
+ }
34
+
35
+ ._1313gq6 {
36
+ gap: var(--vinyasa-space1);
37
+ flex-direction: column;
38
+ display: flex;
39
+ }
40
+
41
+ ._1313gq7 {
42
+ font-size: var(--vinyasa-font-size-sm);
43
+ font-weight: var(--vinyasa-font-weight-semibold);
44
+ margin: 0;
45
+ }
46
+
47
+ ._1313gq8 {
48
+ font-size: var(--vinyasa-font-size-sm);
49
+ margin: 0;
50
+ }
51
+
@@ -0,0 +1,61 @@
1
+ import "./903.css";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import box from "@vinyasa/layout/box";
4
+ import { forwardRef } from "react";
5
+ import { createRuntimeFn } from "./953.js";
6
+ import { statusIcons } from "./277.js";
7
+ var Alert_css_alert = createRuntimeFn({
8
+ defaultClassName: '_1313gq0',
9
+ variantClassNames: {
10
+ status: {
11
+ info: '_1313gq1',
12
+ success: '_1313gq2',
13
+ warning: '_1313gq3',
14
+ error: '_1313gq4'
15
+ }
16
+ },
17
+ defaultVariants: {
18
+ status: 'info'
19
+ },
20
+ compoundVariants: []
21
+ });
22
+ var body = '_1313gq6';
23
+ var Alert_css_description = '_1313gq8';
24
+ var icon = '_1313gq5';
25
+ var Alert_css_title = '_1313gq7';
26
+ const Alert = /*#__PURE__*/ forwardRef(({ status = 'info', title, description, className, ...rest }, ref)=>{
27
+ const Icon = statusIcons[status];
28
+ const classes = className ? `${Alert_css_alert({
29
+ status
30
+ })} ${className}` : Alert_css_alert({
31
+ status
32
+ });
33
+ return /*#__PURE__*/ jsxs(box, {
34
+ ref: ref,
35
+ role: "alert",
36
+ className: classes,
37
+ ...rest,
38
+ children: [
39
+ /*#__PURE__*/ jsx(Icon, {
40
+ className: icon,
41
+ "aria-hidden": "true"
42
+ }),
43
+ /*#__PURE__*/ jsxs("div", {
44
+ className: body,
45
+ children: [
46
+ /*#__PURE__*/ jsx("p", {
47
+ className: Alert_css_title,
48
+ children: title
49
+ }),
50
+ description ? /*#__PURE__*/ jsx("p", {
51
+ className: Alert_css_description,
52
+ children: description
53
+ }) : null
54
+ ]
55
+ })
56
+ ]
57
+ });
58
+ });
59
+ Alert.displayName = 'Alert';
60
+ const alert_Alert = Alert;
61
+ export { alert_Alert as Alert };
@@ -0,0 +1,87 @@
1
+ function toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r || "default");
6
+ if ("object" != typeof i) return i;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return ("string" === r ? String : Number)(t);
10
+ }
11
+ function toPropertyKey(t) {
12
+ var i = toPrimitive(t, "string");
13
+ return "symbol" == typeof i ? i : String(i);
14
+ }
15
+ function _defineProperty(obj, key, value) {
16
+ key = toPropertyKey(key);
17
+ if (key in obj) Object.defineProperty(obj, key, {
18
+ value: value,
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true
22
+ });
23
+ else obj[key] = value;
24
+ return obj;
25
+ }
26
+ function ownKeys(e, r) {
27
+ var t = Object.keys(e);
28
+ if (Object.getOwnPropertySymbols) {
29
+ var o = Object.getOwnPropertySymbols(e);
30
+ r && (o = o.filter(function(r) {
31
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
32
+ })), t.push.apply(t, o);
33
+ }
34
+ return t;
35
+ }
36
+ function _objectSpread2(e) {
37
+ for(var r = 1; r < arguments.length; r++){
38
+ var t = null != arguments[r] ? arguments[r] : {};
39
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
40
+ _defineProperty(e, r, t[r]);
41
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
42
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
43
+ });
44
+ }
45
+ return e;
46
+ }
47
+ function mapValues(input, fn) {
48
+ var result = {};
49
+ for(var _key in input)result[_key] = fn(input[_key], _key);
50
+ return result;
51
+ }
52
+ var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
53
+ for (var key of Object.keys(compoundCheck)){
54
+ var _selections$key;
55
+ if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
56
+ }
57
+ return true;
58
+ };
59
+ var createRuntimeFn = (config)=>{
60
+ var runtimeFn = (options)=>{
61
+ var className = config.defaultClassName;
62
+ var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
63
+ for(var variantName in selections){
64
+ var _selections$variantNa;
65
+ var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
66
+ if (null != variantSelection) {
67
+ var selection = variantSelection;
68
+ if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
69
+ var selectionClassName = config.variantClassNames[variantName][selection];
70
+ if (selectionClassName) className += ' ' + selectionClassName;
71
+ }
72
+ }
73
+ for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
74
+ return className;
75
+ };
76
+ runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
77
+ runtimeFn.classNames = {
78
+ get base () {
79
+ return config.defaultClassName.split(' ')[0];
80
+ },
81
+ get variants () {
82
+ return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
83
+ }
84
+ };
85
+ return runtimeFn;
86
+ };
87
+ export { createRuntimeFn };
@@ -0,0 +1,37 @@
1
+ .a1nlu90 {
2
+ justify-content: flex-start;
3
+ align-items: center;
4
+ gap: var(--vinyasa-space2);
5
+ width: 100%;
6
+ padding: var(--vinyasa-space3);
7
+ font-family: var(--vinyasa-font-family-sans);
8
+ font-size: var(--vinyasa-font-size-sm);
9
+ font-weight: var(--vinyasa-font-weight-medium);
10
+ display: flex;
11
+ }
12
+
13
+ .a1nlu91 {
14
+ background-color: var(--vinyasa-status-info-bg);
15
+ color: var(--vinyasa-status-info-text);
16
+ }
17
+
18
+ .a1nlu92 {
19
+ background-color: var(--vinyasa-status-success-bg);
20
+ color: var(--vinyasa-status-success-text);
21
+ }
22
+
23
+ .a1nlu93 {
24
+ background-color: var(--vinyasa-status-warning-bg);
25
+ color: var(--vinyasa-status-warning-text);
26
+ }
27
+
28
+ .a1nlu94 {
29
+ background-color: var(--vinyasa-status-error-bg);
30
+ color: var(--vinyasa-status-error-text);
31
+ }
32
+
33
+ .a1nlu95 {
34
+ flex-shrink: 0;
35
+ margin-top: -.05em;
36
+ }
37
+
@@ -0,0 +1,46 @@
1
+ import "./989.css";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import box from "@vinyasa/layout/box";
4
+ import { forwardRef } from "react";
5
+ import { createRuntimeFn } from "./953.js";
6
+ import { statusIcons } from "./277.js";
7
+ var banner = createRuntimeFn({
8
+ defaultClassName: 'a1nlu90',
9
+ variantClassNames: {
10
+ status: {
11
+ info: 'a1nlu91',
12
+ success: 'a1nlu92',
13
+ warning: 'a1nlu93',
14
+ error: 'a1nlu94'
15
+ }
16
+ },
17
+ defaultVariants: {
18
+ status: 'info'
19
+ },
20
+ compoundVariants: []
21
+ });
22
+ var icon = 'a1nlu95';
23
+ const Banner = /*#__PURE__*/ forwardRef(({ status = 'info', className, children, ...rest }, ref)=>{
24
+ const Icon = statusIcons[status];
25
+ const classes = className ? `${banner({
26
+ status
27
+ })} ${className}` : banner({
28
+ status
29
+ });
30
+ return /*#__PURE__*/ jsxs(box, {
31
+ ref: ref,
32
+ role: "alert",
33
+ className: classes,
34
+ ...rest,
35
+ children: [
36
+ /*#__PURE__*/ jsx(Icon, {
37
+ className: icon,
38
+ "aria-hidden": "true"
39
+ }),
40
+ children
41
+ ]
42
+ });
43
+ });
44
+ Banner.displayName = 'Banner';
45
+ const banner_Banner = Banner;
46
+ export { banner_Banner as Banner };
@@ -0,0 +1,2 @@
1
+ export * from './components/alert/index';
2
+ export { default } from './components/alert/index';
@@ -0,0 +1 @@
1
+ export { Alert as default } from "./903.js";
@@ -0,0 +1,2 @@
1
+ export * from './components/banner/index';
2
+ export { default } from './components/banner/index';
@@ -0,0 +1 @@
1
+ export { Banner as default } from "./989.js";
@@ -0,0 +1,2 @@
1
+ export * from './components/circular-progress/index';
2
+ export { default } from './components/circular-progress/index';
@@ -0,0 +1 @@
1
+ export { CircularProgress as default } from "./266.js";
@@ -0,0 +1,24 @@
1
+ export declare const alert: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ status: {
3
+ info: {
4
+ backgroundColor: `var(--${string})`;
5
+ color: `var(--${string})`;
6
+ };
7
+ success: {
8
+ backgroundColor: `var(--${string})`;
9
+ color: `var(--${string})`;
10
+ };
11
+ warning: {
12
+ backgroundColor: `var(--${string})`;
13
+ color: `var(--${string})`;
14
+ };
15
+ error: {
16
+ backgroundColor: `var(--${string})`;
17
+ color: `var(--${string})`;
18
+ };
19
+ };
20
+ }>;
21
+ export declare const icon: string;
22
+ export declare const body: string;
23
+ export declare const title: string;
24
+ export declare const description: string;
@@ -0,0 +1,14 @@
1
+ import { type BoxProps } from '@vinyasa/layout/box';
2
+ import { type ReactNode } from 'react';
3
+ import { type Status } from '../../status';
4
+ export type AlertProps = Omit<BoxProps, 'title'> & {
5
+ status?: Status;
6
+ title: ReactNode;
7
+ description?: ReactNode;
8
+ };
9
+ declare const Alert: import("react").ForwardRefExoticComponent<Omit<BoxProps, "title"> & {
10
+ status?: Status;
11
+ title: ReactNode;
12
+ description?: ReactNode;
13
+ } & import("react").RefAttributes<HTMLElement>>;
14
+ export default Alert;
@@ -0,0 +1 @@
1
+ export { default, type AlertProps } from './Alert';
@@ -0,0 +1,21 @@
1
+ export declare const banner: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ status: {
3
+ info: {
4
+ backgroundColor: `var(--${string})`;
5
+ color: `var(--${string})`;
6
+ };
7
+ success: {
8
+ backgroundColor: `var(--${string})`;
9
+ color: `var(--${string})`;
10
+ };
11
+ warning: {
12
+ backgroundColor: `var(--${string})`;
13
+ color: `var(--${string})`;
14
+ };
15
+ error: {
16
+ backgroundColor: `var(--${string})`;
17
+ color: `var(--${string})`;
18
+ };
19
+ };
20
+ }>;
21
+ export declare const icon: string;
@@ -0,0 +1,12 @@
1
+ import { type BoxProps } from '@vinyasa/layout/box';
2
+ import { type ReactNode } from 'react';
3
+ import { type Status } from '../../status';
4
+ export type BannerProps = Omit<BoxProps, 'children'> & {
5
+ status?: Status;
6
+ children?: ReactNode;
7
+ };
8
+ declare const Banner: import("react").ForwardRefExoticComponent<Omit<BoxProps, "children"> & {
9
+ status?: Status;
10
+ children?: ReactNode;
11
+ } & import("react").RefAttributes<HTMLElement>>;
12
+ export default Banner;
@@ -0,0 +1 @@
1
+ export { default, type BannerProps } from './Banner';
@@ -0,0 +1,4 @@
1
+ export declare const svg: string;
2
+ export declare const indeterminate: string;
3
+ export declare const track: string;
4
+ export declare const fill: string;
@@ -0,0 +1,17 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ import { type SpacingProps } from '../../spacing';
3
+ export type CircularProgressProps = Omit<ComponentPropsWithoutRef<'svg'>, 'children'> & SpacingProps & {
4
+ /** Current progress, 0-max. Omit for an indeterminate spinning ring. */
5
+ value?: number;
6
+ max?: number;
7
+ size?: number;
8
+ strokeWidth?: number;
9
+ };
10
+ declare const CircularProgress: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref">, "children"> & SpacingProps & {
11
+ /** Current progress, 0-max. Omit for an indeterminate spinning ring. */
12
+ value?: number;
13
+ max?: number;
14
+ size?: number;
15
+ strokeWidth?: number;
16
+ } & import("react").RefAttributes<SVGSVGElement>>;
17
+ export default CircularProgress;
@@ -0,0 +1 @@
1
+ export { default, type CircularProgressProps } from './CircularProgress';
@@ -0,0 +1 @@
1
+ export declare const iconWrapper: string;
@@ -0,0 +1,15 @@
1
+ import { type CenterProps } from '@vinyasa/layout';
2
+ import { type ReactNode } from 'react';
3
+ export type EmptyStateProps = Omit<CenterProps, 'children'> & {
4
+ icon?: ReactNode;
5
+ title: ReactNode;
6
+ description?: ReactNode;
7
+ action?: ReactNode;
8
+ };
9
+ declare const EmptyState: import("react").ForwardRefExoticComponent<Omit<CenterProps, "children"> & {
10
+ icon?: ReactNode;
11
+ title: ReactNode;
12
+ description?: ReactNode;
13
+ action?: ReactNode;
14
+ } & import("react").RefAttributes<HTMLElement>>;
15
+ export default EmptyState;
@@ -0,0 +1 @@
1
+ export { default, type EmptyStateProps } from './EmptyState';
@@ -0,0 +1,32 @@
1
+ import { Component, type ErrorInfo, type ReactNode } from 'react';
2
+ export interface ErrorBoundaryFallbackProps {
3
+ error: Error;
4
+ resetErrorBoundary: () => void;
5
+ }
6
+ export interface ErrorBoundaryProps {
7
+ children: ReactNode;
8
+ /**
9
+ * A plain node, or a render function receiving the caught error and a
10
+ * `resetErrorBoundary` callback — same shape as the `react-error-boundary`
11
+ * package's `fallbackRender`, the de facto standard API for this.
12
+ * Defaults to an EmptyState with a "Try again" action wired to reset.
13
+ */
14
+ fallback?: ReactNode | ((props: ErrorBoundaryFallbackProps) => ReactNode);
15
+ onError?: (error: Error, errorInfo: ErrorInfo) => void;
16
+ /** Called after the boundary resets, before children re-render. */
17
+ onReset?: () => void;
18
+ /** When any value in this array changes, the boundary resets automatically. */
19
+ resetKeys?: unknown[];
20
+ }
21
+ interface ErrorBoundaryState {
22
+ error: Error | null;
23
+ }
24
+ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
25
+ state: ErrorBoundaryState;
26
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
27
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
28
+ componentDidUpdate(prevProps: ErrorBoundaryProps): void;
29
+ reset: () => void;
30
+ render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
31
+ }
32
+ export default ErrorBoundary;
@@ -0,0 +1 @@
1
+ export { default, type ErrorBoundaryFallbackProps, type ErrorBoundaryProps } from './ErrorBoundary';
@@ -0,0 +1,17 @@
1
+ export declare const inlineMessage: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ status: {
3
+ info: {
4
+ color: `var(--${string})`;
5
+ };
6
+ success: {
7
+ color: `var(--${string})`;
8
+ };
9
+ warning: {
10
+ color: `var(--${string})`;
11
+ };
12
+ error: {
13
+ color: `var(--${string})`;
14
+ };
15
+ };
16
+ }>;
17
+ export declare const icon: string;
@@ -0,0 +1,10 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ import { type SpacingProps } from '../../spacing';
3
+ import { type Status } from '../../status';
4
+ export type InlineMessageProps = ComponentPropsWithoutRef<'span'> & SpacingProps & {
5
+ status?: Status;
6
+ };
7
+ declare const InlineMessage: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & SpacingProps & {
8
+ status?: Status;
9
+ } & import("react").RefAttributes<HTMLSpanElement>>;
10
+ export default InlineMessage;
@@ -0,0 +1 @@
1
+ export { default, type InlineMessageProps } from './InlineMessage';
@@ -0,0 +1,3 @@
1
+ export declare const wrapper: string;
2
+ export declare const overlay: string;
3
+ export declare const backdrop: string;