panelui-native 0.1.0 → 0.4.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.
Files changed (124) hide show
  1. package/README.md +251 -0
  2. package/lib/module/components/alert/index.js +107 -24
  3. package/lib/module/components/alert/index.js.map +1 -1
  4. package/lib/module/components/avatar/index.js +1 -1
  5. package/lib/module/components/avatar/index.js.map +1 -1
  6. package/lib/module/components/badge/index.js +3 -3
  7. package/lib/module/components/badge/index.js.map +1 -1
  8. package/lib/module/components/bottom-sheet/index.js +35 -31
  9. package/lib/module/components/bottom-sheet/index.js.map +1 -1
  10. package/lib/module/components/button/index.js +44 -15
  11. package/lib/module/components/button/index.js.map +1 -1
  12. package/lib/module/components/card/index.js +5 -5
  13. package/lib/module/components/card/index.js.map +1 -1
  14. package/lib/module/components/checkbox/index.js +21 -8
  15. package/lib/module/components/checkbox/index.js.map +1 -1
  16. package/lib/module/components/dialog/index.js +21 -17
  17. package/lib/module/components/dialog/index.js.map +1 -1
  18. package/lib/module/components/empty-state/index.js +178 -0
  19. package/lib/module/components/empty-state/index.js.map +1 -0
  20. package/lib/module/components/frame/index.js +100 -0
  21. package/lib/module/components/frame/index.js.map +1 -0
  22. package/lib/module/components/inline-select/index.js +159 -0
  23. package/lib/module/components/inline-select/index.js.map +1 -0
  24. package/lib/module/components/input/index.js +1 -1
  25. package/lib/module/components/input/index.js.map +1 -1
  26. package/lib/module/components/input-group/index.js +132 -0
  27. package/lib/module/components/input-group/index.js.map +1 -0
  28. package/lib/module/components/label/index.js +117 -0
  29. package/lib/module/components/label/index.js.map +1 -0
  30. package/lib/module/components/progress/index.js +138 -0
  31. package/lib/module/components/progress/index.js.map +1 -0
  32. package/lib/module/components/select/index.js +35 -28
  33. package/lib/module/components/select/index.js.map +1 -1
  34. package/lib/module/components/skeleton/index.js +1 -1
  35. package/lib/module/components/skeleton/index.js.map +1 -1
  36. package/lib/module/components/spinner/index.js +1 -1
  37. package/lib/module/components/spinner/index.js.map +1 -1
  38. package/lib/module/components/steps/index.js +354 -0
  39. package/lib/module/components/steps/index.js.map +1 -0
  40. package/lib/module/components/tabs/index.js +9 -3
  41. package/lib/module/components/tabs/index.js.map +1 -1
  42. package/lib/module/components/toast/index.js +479 -0
  43. package/lib/module/components/toast/index.js.map +1 -0
  44. package/lib/module/components/toast/toast-store.js +81 -0
  45. package/lib/module/components/toast/toast-store.js.map +1 -0
  46. package/lib/module/components/typography/index.js +126 -0
  47. package/lib/module/components/typography/index.js.map +1 -0
  48. package/lib/module/icons/index.js +223 -2
  49. package/lib/module/icons/index.js.map +1 -1
  50. package/lib/module/index.js +11 -2
  51. package/lib/module/index.js.map +1 -1
  52. package/lib/module/providers/panel-ui-provider.js +20 -8
  53. package/lib/module/providers/panel-ui-provider.js.map +1 -1
  54. package/lib/module/theme/use-theme.js +90 -3
  55. package/lib/module/theme/use-theme.js.map +1 -1
  56. package/lib/typescript/src/components/alert/index.d.ts +41 -19
  57. package/lib/typescript/src/components/alert/index.d.ts.map +1 -1
  58. package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
  59. package/lib/typescript/src/components/button/index.d.ts +39 -0
  60. package/lib/typescript/src/components/button/index.d.ts.map +1 -1
  61. package/lib/typescript/src/components/checkbox/index.d.ts +8 -0
  62. package/lib/typescript/src/components/checkbox/index.d.ts.map +1 -1
  63. package/lib/typescript/src/components/dialog/index.d.ts.map +1 -1
  64. package/lib/typescript/src/components/empty-state/index.d.ts +73 -0
  65. package/lib/typescript/src/components/empty-state/index.d.ts.map +1 -0
  66. package/lib/typescript/src/components/frame/index.d.ts +21 -0
  67. package/lib/typescript/src/components/frame/index.d.ts.map +1 -0
  68. package/lib/typescript/src/components/inline-select/index.d.ts +25 -0
  69. package/lib/typescript/src/components/inline-select/index.d.ts.map +1 -0
  70. package/lib/typescript/src/components/input-group/index.d.ts +34 -0
  71. package/lib/typescript/src/components/input-group/index.d.ts.map +1 -0
  72. package/lib/typescript/src/components/label/index.d.ts +28 -0
  73. package/lib/typescript/src/components/label/index.d.ts.map +1 -0
  74. package/lib/typescript/src/components/progress/index.d.ts +132 -0
  75. package/lib/typescript/src/components/progress/index.d.ts.map +1 -0
  76. package/lib/typescript/src/components/select/index.d.ts.map +1 -1
  77. package/lib/typescript/src/components/spinner/index.d.ts +2 -2
  78. package/lib/typescript/src/components/spinner/index.d.ts.map +1 -1
  79. package/lib/typescript/src/components/steps/index.d.ts +62 -0
  80. package/lib/typescript/src/components/steps/index.d.ts.map +1 -0
  81. package/lib/typescript/src/components/tabs/index.d.ts.map +1 -1
  82. package/lib/typescript/src/components/toast/index.d.ts +176 -0
  83. package/lib/typescript/src/components/toast/index.d.ts.map +1 -0
  84. package/lib/typescript/src/components/toast/toast-store.d.ts +65 -0
  85. package/lib/typescript/src/components/toast/toast-store.d.ts.map +1 -0
  86. package/lib/typescript/src/components/typography/index.d.ts +77 -0
  87. package/lib/typescript/src/components/typography/index.d.ts.map +1 -0
  88. package/lib/typescript/src/icons/index.d.ts +25 -0
  89. package/lib/typescript/src/icons/index.d.ts.map +1 -1
  90. package/lib/typescript/src/index.d.ts +12 -3
  91. package/lib/typescript/src/index.d.ts.map +1 -1
  92. package/lib/typescript/src/providers/panel-ui-provider.d.ts +20 -5
  93. package/lib/typescript/src/providers/panel-ui-provider.d.ts.map +1 -1
  94. package/lib/typescript/src/theme/use-theme.d.ts +64 -4
  95. package/lib/typescript/src/theme/use-theme.d.ts.map +1 -1
  96. package/package.json +28 -5
  97. package/src/components/alert/index.tsx +104 -28
  98. package/src/components/avatar/index.tsx +1 -1
  99. package/src/components/badge/index.tsx +3 -3
  100. package/src/components/bottom-sheet/index.tsx +8 -3
  101. package/src/components/button/index.tsx +47 -7
  102. package/src/components/card/index.tsx +5 -5
  103. package/src/components/checkbox/index.tsx +18 -4
  104. package/src/components/dialog/index.tsx +10 -5
  105. package/src/components/empty-state/index.tsx +136 -0
  106. package/src/components/frame/index.tsx +104 -0
  107. package/src/components/inline-select/index.tsx +185 -0
  108. package/src/components/input/index.tsx +1 -1
  109. package/src/components/input-group/index.tsx +164 -0
  110. package/src/components/label/index.tsx +128 -0
  111. package/src/components/progress/index.tsx +147 -0
  112. package/src/components/select/index.tsx +30 -23
  113. package/src/components/skeleton/index.tsx +1 -1
  114. package/src/components/spinner/index.tsx +1 -1
  115. package/src/components/steps/index.tsx +343 -0
  116. package/src/components/tabs/index.tsx +10 -2
  117. package/src/components/toast/index.tsx +447 -0
  118. package/src/components/toast/toast-store.ts +120 -0
  119. package/src/components/typography/index.tsx +121 -0
  120. package/src/icons/index.tsx +152 -1
  121. package/src/index.ts +82 -3
  122. package/src/providers/panel-ui-provider.tsx +35 -10
  123. package/src/theme/use-theme.ts +119 -4
  124. package/theme.css +446 -108
@@ -0,0 +1,132 @@
1
+ import { View, type ViewProps } from 'react-native';
2
+ import { type VariantProps } from 'tailwind-variants';
3
+ declare const progressVariants: import("tailwind-variants").TVReturnType<{
4
+ color: {
5
+ primary: {
6
+ track: string;
7
+ indicator: string;
8
+ };
9
+ success: {
10
+ track: string;
11
+ indicator: string;
12
+ };
13
+ warning: {
14
+ track: string;
15
+ indicator: string;
16
+ };
17
+ destructive: {
18
+ track: string;
19
+ indicator: string;
20
+ };
21
+ info: {
22
+ track: string;
23
+ indicator: string;
24
+ };
25
+ };
26
+ size: {
27
+ sm: {
28
+ track: string;
29
+ };
30
+ md: {
31
+ track: string;
32
+ };
33
+ lg: {
34
+ track: string;
35
+ };
36
+ };
37
+ }, {
38
+ track: string;
39
+ indicator: string;
40
+ }, undefined, {
41
+ color: {
42
+ primary: {
43
+ track: string;
44
+ indicator: string;
45
+ };
46
+ success: {
47
+ track: string;
48
+ indicator: string;
49
+ };
50
+ warning: {
51
+ track: string;
52
+ indicator: string;
53
+ };
54
+ destructive: {
55
+ track: string;
56
+ indicator: string;
57
+ };
58
+ info: {
59
+ track: string;
60
+ indicator: string;
61
+ };
62
+ };
63
+ size: {
64
+ sm: {
65
+ track: string;
66
+ };
67
+ md: {
68
+ track: string;
69
+ };
70
+ lg: {
71
+ track: string;
72
+ };
73
+ };
74
+ }, {
75
+ track: string;
76
+ indicator: string;
77
+ }, import("tailwind-variants").TVReturnType<{
78
+ color: {
79
+ primary: {
80
+ track: string;
81
+ indicator: string;
82
+ };
83
+ success: {
84
+ track: string;
85
+ indicator: string;
86
+ };
87
+ warning: {
88
+ track: string;
89
+ indicator: string;
90
+ };
91
+ destructive: {
92
+ track: string;
93
+ indicator: string;
94
+ };
95
+ info: {
96
+ track: string;
97
+ indicator: string;
98
+ };
99
+ };
100
+ size: {
101
+ sm: {
102
+ track: string;
103
+ };
104
+ md: {
105
+ track: string;
106
+ };
107
+ lg: {
108
+ track: string;
109
+ };
110
+ };
111
+ }, {
112
+ track: string;
113
+ indicator: string;
114
+ }, undefined, unknown, unknown, undefined>>;
115
+ type ProgressVariantProps = VariantProps<typeof progressVariants>;
116
+ export interface ProgressProps extends Omit<ViewProps, 'children'>, ProgressVariantProps {
117
+ className?: string;
118
+ /** Progress value, 0–100. Ignored when `indeterminate` is set. */
119
+ value?: number;
120
+ /** Show a looping animation for unknown-duration work. */
121
+ indeterminate?: boolean;
122
+ /** Extra classes for the moving indicator. */
123
+ indicatorClassName?: string;
124
+ }
125
+ /**
126
+ * Determinate or indeterminate progress bar. The fill width (determinate) and
127
+ * the sliding bar (indeterminate) are both driven on the UI thread, so updates
128
+ * never re-render past the value change itself.
129
+ */
130
+ export declare const Progress: import("react").ForwardRefExoticComponent<ProgressProps & import("react").RefAttributes<View>>;
131
+ export {};
132
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/progress/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAW5E,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAM1D,QAAA,MAAM,gBAAgB;;;;;;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L,aAAa,EACb,WAAgC,EAChC,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,WAAW,+BAgEb;AAED,eAAO,MAAM,MAAM;;CAEjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAmCf,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4DAA4D;AAC5D,iBAAS,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,eAAe,+BA4BpD;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,KAAK,EACL,aAAa,EACb,WAAgC,EAChC,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,WAAW,+BAoEb;AAED,eAAO,MAAM,MAAM;;CAEjB,CAAC"}
@@ -5,7 +5,7 @@ declare const spinnerVariants: import("tailwind-variants").TVReturnType<{
5
5
  md: string;
6
6
  lg: string;
7
7
  };
8
- }, undefined, "rounded-full border-2 border-foreground/15 border-t-primary", {
8
+ }, undefined, "rounded-full border-2 border-muted border-t-primary", {
9
9
  size: {
10
10
  sm: string;
11
11
  md: string;
@@ -17,7 +17,7 @@ declare const spinnerVariants: import("tailwind-variants").TVReturnType<{
17
17
  md: string;
18
18
  lg: string;
19
19
  };
20
- }, undefined, "rounded-full border-2 border-foreground/15 border-t-primary", unknown, unknown, undefined>>;
20
+ }, undefined, "rounded-full border-2 border-muted border-t-primary", unknown, unknown, undefined>>;
21
21
  export interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
22
22
  className?: string;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;0GAYnB,CAAC;AAEH,MAAM,WAAW,YAAa,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uEAAuE;AACvE,eAAO,MAAM,OAAO,4DAA8C,YAAY,iCAsB5E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE1D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;kGAYnB,CAAC;AAEH,MAAM,WAAW,YAAa,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,uEAAuE;AACvE,eAAO,MAAM,OAAO,4DAA8C,YAAY,iCAsB5E,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Steps — a stepper for multi-step flows.
3
+ *
4
+ * Adapted from: origin-space/originui apps/origin/registry/default/ui/stepper.tsx
5
+ * (the Stepper / Item / Trigger / Indicator / Title / Description / Separator
6
+ * anatomy, and the completed | active | inactive | loading state resolution).
7
+ *
8
+ * Upstream drives all styling through `data-*` attributes, which React Native
9
+ * has no equivalent for. Here the state is resolved in JS and passed down
10
+ * through context into `tv()` variants — the same approach Alert uses.
11
+ *
12
+ * Steps does not own your flow: it reflects whatever step your app says is
13
+ * active. Pass `value` to control it, or `defaultValue` to let it manage
14
+ * its own.
15
+ */
16
+ import { type ReactNode } from 'react';
17
+ import { View, type Text as RNText, type ViewProps } from 'react-native';
18
+ import { type TextProps } from '../../primitives/text.js';
19
+ export type StepState = 'active' | 'completed' | 'inactive' | 'loading';
20
+ export type StepsOrientation = 'horizontal' | 'vertical';
21
+ export interface StepsProps extends ViewProps {
22
+ className?: string;
23
+ /** Active step when uncontrolled. */
24
+ defaultValue?: number;
25
+ /** Active step, controlled. */
26
+ value?: number;
27
+ onValueChange?: (value: number) => void;
28
+ orientation?: StepsOrientation;
29
+ children?: ReactNode;
30
+ }
31
+ export interface StepsItemProps extends ViewProps {
32
+ className?: string;
33
+ /** This item's position in the flow, zero-based by convention. */
34
+ step: number;
35
+ /** Force the completed state, regardless of the active step. */
36
+ completed?: boolean;
37
+ disabled?: boolean;
38
+ /** Shows a spinner in place of the number while this step is active. */
39
+ loading?: boolean;
40
+ children?: ReactNode;
41
+ }
42
+ export interface StepsTriggerProps extends ViewProps {
43
+ className?: string;
44
+ children?: ReactNode;
45
+ }
46
+ export interface StepsIndicatorProps extends ViewProps {
47
+ className?: string;
48
+ /** Replaces the number / check / spinner entirely. */
49
+ children?: ReactNode;
50
+ }
51
+ export interface StepsSeparatorProps extends ViewProps {
52
+ className?: string;
53
+ }
54
+ export declare const Steps: import("react").ForwardRefExoticComponent<StepsProps & import("react").RefAttributes<View>> & {
55
+ Item: import("react").ForwardRefExoticComponent<StepsItemProps & import("react").RefAttributes<View>>;
56
+ Trigger: import("react").ForwardRefExoticComponent<StepsTriggerProps & import("react").RefAttributes<View>>;
57
+ Indicator: import("react").ForwardRefExoticComponent<StepsIndicatorProps & import("react").RefAttributes<View>>;
58
+ Title: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<RNText>>;
59
+ Description: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<RNText>>;
60
+ Separator: import("react").ForwardRefExoticComponent<StepsSeparatorProps & import("react").RefAttributes<View>>;
61
+ };
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/steps/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAa,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpF,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAG7D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,CAAC;AACxE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;AAuFzD,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA6CD,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAqCD,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,SAAS,CAAC,EAAE,MAAM,CA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Q,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,gBAAgB,+BAiCpE;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,sCAS9E;AAED,eAAO,MAAM,IAAI;;;;CAIf,CAAC"}
@@ -0,0 +1,176 @@
1
+ /**
2
+ * Toast — transient notification.
3
+ *
4
+ * Adapted from: heroui-inc/heroui-native src/components/toast/
5
+ * (the three usage patterns — string, config object, custom component — the
6
+ * Title / Description / Action / Close anatomy, placement, and swipe-to-
7
+ * dismiss). Styled with Coss UI tokens and PanelUI's Alert status palette.
8
+ *
9
+ * The viewport is mounted for you by PanelUIProvider; `useToast()` works
10
+ * anywhere below it.
11
+ */
12
+ import { type ReactNode } from 'react';
13
+ import { type ViewProps } from 'react-native';
14
+ import { type VariantProps } from 'tailwind-variants';
15
+ import { type TextProps } from '../../primitives/text.js';
16
+ import { type ButtonProps } from '../button/index.js';
17
+ import { toast, type ToastHandle, type ToastItem, type ToastPlacement, type ToastVariant } from './toast-store.js';
18
+ declare const toastVariants: import("tailwind-variants").TVReturnType<{
19
+ variant: {
20
+ default: {
21
+ root: string;
22
+ title: string;
23
+ };
24
+ info: {
25
+ root: string;
26
+ title: string;
27
+ };
28
+ success: {
29
+ root: string;
30
+ title: string;
31
+ };
32
+ warning: {
33
+ root: string;
34
+ title: string;
35
+ };
36
+ destructive: {
37
+ root: string;
38
+ title: string;
39
+ };
40
+ };
41
+ }, {
42
+ root: string;
43
+ indicator: string;
44
+ content: string;
45
+ title: string;
46
+ description: string;
47
+ }, undefined, {
48
+ variant: {
49
+ default: {
50
+ root: string;
51
+ title: string;
52
+ };
53
+ info: {
54
+ root: string;
55
+ title: string;
56
+ };
57
+ success: {
58
+ root: string;
59
+ title: string;
60
+ };
61
+ warning: {
62
+ root: string;
63
+ title: string;
64
+ };
65
+ destructive: {
66
+ root: string;
67
+ title: string;
68
+ };
69
+ };
70
+ }, {
71
+ root: string;
72
+ indicator: string;
73
+ content: string;
74
+ title: string;
75
+ description: string;
76
+ }, import("tailwind-variants").TVReturnType<{
77
+ variant: {
78
+ default: {
79
+ root: string;
80
+ title: string;
81
+ };
82
+ info: {
83
+ root: string;
84
+ title: string;
85
+ };
86
+ success: {
87
+ root: string;
88
+ title: string;
89
+ };
90
+ warning: {
91
+ root: string;
92
+ title: string;
93
+ };
94
+ destructive: {
95
+ root: string;
96
+ title: string;
97
+ };
98
+ };
99
+ }, {
100
+ root: string;
101
+ indicator: string;
102
+ content: string;
103
+ title: string;
104
+ description: string;
105
+ }, undefined, unknown, unknown, undefined>>;
106
+ export interface ToastProps extends ViewProps, VariantProps<typeof toastVariants> {
107
+ className?: string;
108
+ /** Called when the close button is pressed or the toast is swiped away. */
109
+ onHide?: () => void;
110
+ children?: ReactNode;
111
+ }
112
+ export interface ToastIndicatorProps extends ViewProps {
113
+ className?: string;
114
+ iconProps?: {
115
+ size?: number;
116
+ color?: string;
117
+ };
118
+ children?: ReactNode;
119
+ }
120
+ export interface ToastCloseProps extends ViewProps {
121
+ className?: string;
122
+ }
123
+ export declare const Toast: {
124
+ ({ className, variant, onHide, children, ...props }: ToastProps): import("react").JSX.Element;
125
+ displayName: string;
126
+ } & {
127
+ Indicator: {
128
+ ({ className, iconProps, children, ...props }: ToastIndicatorProps): import("react").JSX.Element;
129
+ displayName: string;
130
+ };
131
+ Content: {
132
+ ({ className, ...props }: ViewProps & {
133
+ className?: string;
134
+ }): import("react").JSX.Element;
135
+ displayName: string;
136
+ };
137
+ Title: {
138
+ ({ className, ...props }: TextProps): import("react").JSX.Element;
139
+ displayName: string;
140
+ };
141
+ Description: {
142
+ ({ className, ...props }: TextProps): import("react").JSX.Element;
143
+ displayName: string;
144
+ };
145
+ Action: {
146
+ ({ variant, size, onPress, ...props }: ButtonProps): import("react").JSX.Element;
147
+ displayName: string;
148
+ };
149
+ Close: {
150
+ ({ className, ...props }: ToastCloseProps): import("react").JSX.Element;
151
+ displayName: string;
152
+ };
153
+ };
154
+ /**
155
+ * Renders the toast queue. PanelUIProvider mounts this automatically — you
156
+ * only need it directly if you build your own provider.
157
+ */
158
+ export declare function ToastViewport(): import("react").JSX.Element | null;
159
+ /**
160
+ * Access the toast API.
161
+ *
162
+ * ```tsx
163
+ * const { toast } = useToast();
164
+ * toast.show({ variant: 'success', label: 'Saved' });
165
+ * ```
166
+ */
167
+ export declare function useToast(): {
168
+ toast: {
169
+ show: (options: import("./toast-store.js").ToastOptions | string) => string;
170
+ hide: (id: string) => void;
171
+ hideAll: () => void;
172
+ };
173
+ };
174
+ export { toast, type ToastItem, type ToastPlacement, type ToastVariant, type ToastHandle };
175
+ export type { ToastOptions } from './toast-store.js';
176
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAiBpD,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAG7D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAW,CAAC;AACrD,OAAO,EACL,KAAK,EAEL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,kBAAe,CAAC;AA4CvB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAuBjB,CAAC;AA4BH,MAAM,WAAW,UAAW,SAAQ,SAAS,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAuBD,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAuDD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,eAAO,MAAM,KAAK;yDApGiE,UAAU;;;;uDAuBvB,mBAAmB;;;;kCAe1C,SAAS,GAAG;YAAE,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE;;;;kCAOpC,SAAS;;;;kCAOH,SAAS;;;;+CAQoB,WAAW;;;;kCAoB9C,eAAe;;;CA2B1D,CAAC;AAsJH;;;GAGG;AACH,wBAAgB,aAAa,uCAc5B;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ;;;;;;EAEvB;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,CAAC;AAC3F,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAe,CAAC"}
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Toast queue.
3
+ *
4
+ * A module-level store rather than React state, so `toast.show()` works from
5
+ * anywhere — event handlers, API clients, code outside the component tree —
6
+ * without threading a context through. The viewport subscribes with
7
+ * `useSyncExternalStore`.
8
+ */
9
+ import type { ReactNode } from 'react';
10
+ export type ToastVariant = 'default' | 'info' | 'success' | 'warning' | 'destructive';
11
+ export type ToastPlacement = 'top' | 'bottom';
12
+ /** Handle given to action callbacks so they can dismiss their own toast. */
13
+ export interface ToastHandle {
14
+ id: string;
15
+ hide: () => void;
16
+ }
17
+ export interface ToastOptions {
18
+ variant?: ToastVariant;
19
+ placement?: ToastPlacement;
20
+ /** Title line. */
21
+ label?: string;
22
+ description?: string;
23
+ /** Overrides the variant's default status icon. Pass `null` for no icon. */
24
+ icon?: ReactNode;
25
+ /** Renders a trailing action button when set. */
26
+ actionLabel?: string;
27
+ onActionPress?: (handle: ToastHandle) => void;
28
+ /** Show a close button. Defaults to true when there is no action. */
29
+ closable?: boolean;
30
+ /** Milliseconds before auto-dismiss. `0` keeps it up until dismissed. */
31
+ duration?: number;
32
+ /** Fully custom rendering. Receives the same handle as action callbacks. */
33
+ component?: (handle: ToastHandle) => ReactNode;
34
+ }
35
+ export interface ToastItem extends ToastOptions {
36
+ id: string;
37
+ }
38
+ declare class ToastStore {
39
+ private items;
40
+ private snapshot;
41
+ private listeners;
42
+ private timers;
43
+ subscribe: (listener: () => void) => () => void;
44
+ getSnapshot: () => readonly ToastItem[];
45
+ show: (options: ToastOptions | string) => string;
46
+ hide: (id: string) => void;
47
+ hideAll: () => void;
48
+ private emit;
49
+ }
50
+ export declare const toastStore: ToastStore;
51
+ /**
52
+ * Imperative toast API. Also returned from `useToast()`.
53
+ *
54
+ * ```ts
55
+ * toast.show('Saved');
56
+ * toast.show({ variant: 'success', label: 'Deployed', actionLabel: 'View' });
57
+ * ```
58
+ */
59
+ export declare const toast: {
60
+ show: (options: ToastOptions | string) => string;
61
+ hide: (id: string) => void;
62
+ hideAll: () => void;
63
+ };
64
+ export {};
65
+ //# sourceMappingURL=toast-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast-store.d.ts","sourceRoot":"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IAAI,GAAI,SAAS,YAAY,GAAG,MAAM,KAAG,MAAM,CAiB7C;IAEF,IAAI,GAAI,IAAI,MAAM,UAShB;IAEF,OAAO,aAML;IAEF,OAAO,CAAC,IAAI;CAIb;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC;AAE3C;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;oBAtDC,YAAY,GAAG,MAAM,KAAG,MAAM;eAmBnC,MAAM;;CAuCnB,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { View, type Text as RNText, type ViewProps } from 'react-native';
2
+ import { type VariantProps } from 'tailwind-variants';
3
+ import { type TextProps } from '../../primitives/text.js';
4
+ declare const typographyVariants: import("tailwind-variants").TVReturnType<{
5
+ type: {
6
+ h1: string;
7
+ h2: string;
8
+ h3: string;
9
+ h4: string;
10
+ h5: string;
11
+ h6: string;
12
+ body: string;
13
+ 'body-sm': string;
14
+ 'body-xs': string;
15
+ code: string;
16
+ };
17
+ muted: {
18
+ true: string;
19
+ };
20
+ }, undefined, "text-foreground", {
21
+ type: {
22
+ h1: string;
23
+ h2: string;
24
+ h3: string;
25
+ h4: string;
26
+ h5: string;
27
+ h6: string;
28
+ body: string;
29
+ 'body-sm': string;
30
+ 'body-xs': string;
31
+ code: string;
32
+ };
33
+ muted: {
34
+ true: string;
35
+ };
36
+ }, undefined, import("tailwind-variants").TVReturnType<{
37
+ type: {
38
+ h1: string;
39
+ h2: string;
40
+ h3: string;
41
+ h4: string;
42
+ h5: string;
43
+ h6: string;
44
+ body: string;
45
+ 'body-sm': string;
46
+ 'body-xs': string;
47
+ code: string;
48
+ };
49
+ muted: {
50
+ true: string;
51
+ };
52
+ }, undefined, "text-foreground", unknown, unknown, undefined>>;
53
+ export type TypographyType = NonNullable<VariantProps<typeof typographyVariants>['type']>;
54
+ export interface TypographyProps extends Omit<TextProps, 'size' | 'weight'>, VariantProps<typeof typographyVariants> {
55
+ className?: string;
56
+ }
57
+ /** Heading levels, for `Typography.Heading`. */
58
+ type HeadingType = Extract<TypographyType, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
59
+ /** Body sizes, for `Typography.Paragraph`. */
60
+ type ParagraphType = Extract<TypographyType, 'body' | 'body-sm' | 'body-xs'>;
61
+ export interface TypographyHeadingProps extends Omit<TypographyProps, 'type'> {
62
+ type?: HeadingType;
63
+ }
64
+ export interface TypographyParagraphProps extends Omit<TypographyProps, 'type'> {
65
+ type?: ParagraphType;
66
+ }
67
+ export interface TypographyCodeProps extends Omit<TypographyProps, 'type'> {
68
+ /** Classes for the surface behind the code text. */
69
+ containerClassName?: string;
70
+ }
71
+ export declare const Typography: import("react").ForwardRefExoticComponent<TypographyProps & import("react").RefAttributes<RNText>> & {
72
+ Heading: import("react").ForwardRefExoticComponent<TypographyHeadingProps & import("react").RefAttributes<RNText>>;
73
+ Paragraph: import("react").ForwardRefExoticComponent<TypographyParagraphProps & import("react").RefAttributes<RNText>>;
74
+ Code: import("react").ForwardRefExoticComponent<TypographyCodeProps & Pick<ViewProps, "testID"> & import("react").RefAttributes<View>>;
75
+ };
76
+ export {};
77
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,IAAI,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,0BAAuB,CAAC;AAE7D,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAsBtB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,CACtC,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAChD,CAAC;AAEF,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,EACxC,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gDAAgD;AAChD,KAAK,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AACpF,8CAA8C;AAC9C,KAAK,aAAa,GAAG,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;AAmB7E,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC3E,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAgBD,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IAC7E,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AASD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC;IACxE,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgBD,eAAO,MAAM,UAAU;;;;CAIrB,CAAC"}
@@ -1,3 +1,16 @@
1
+ /**
2
+ * Icon set.
3
+ *
4
+ * Two families live here:
5
+ * - Stroked 24×24 icons (Lucide geometry, as used by shadcn-ui/ui) for chrome
6
+ * such as chevrons and the close button.
7
+ * - Filled 16×16 status icons for Alert and Toast indicators.
8
+ * Adapted from: heroui-inc/heroui-native src/components/alert/{default,success,warning}-icon.tsx
9
+ *
10
+ * `color` has no default on the status icons on purpose — callers resolve it
11
+ * from the active theme with `useCSSVariable`, so icons follow the theme
12
+ * instead of a hardcoded hex.
13
+ */
1
14
  import { type SvgProps } from 'react-native-svg';
2
15
  export interface IconProps extends SvgProps {
3
16
  size?: number;
@@ -5,5 +18,17 @@ export interface IconProps extends SvgProps {
5
18
  }
6
19
  export declare function CheckIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
7
20
  export declare function ChevronDownIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
21
+ export declare function ChevronLeftIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
22
+ export declare function ChevronRightIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
8
23
  export declare function XIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
24
+ export declare function SearchIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
25
+ export declare function ArrowUpRightIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
26
+ export declare function SunIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
27
+ export declare function MoonIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
28
+ /** Info circle. Used for `default`, `info` and `destructive` status. */
29
+ export declare function InfoIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
30
+ /** Check circle. Used for `success` status. */
31
+ export declare function CheckCircleIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
32
+ /** Warning triangle. Used for `warning` status. */
33
+ export declare function AlertTriangleIcon({ size, color, ...props }: IconProps): import("react").JSX.Element;
9
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAQ,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,KAAc,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAY3E;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAiB,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAYpF;AAED,wBAAgB,KAA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E,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAUjE;AAED,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAUxE;AAED,mDAAmD;AACnD,wBAAgB,iBAAiB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,+BAU1E"}
@@ -1,23 +1,32 @@
1
1
  export { PanelUIProvider, type PanelUIProviderProps } from './providers/panel-ui-provider.js';
2
- export { useTheme, type ThemeName } from './theme/use-theme.js';
2
+ export { useTheme, useThemeMode, PANEL_THEMES, PANEL_THEME_NAMES, PANEL_EXTRA_THEMES, type ThemeName, type ThemeMode, type PanelTheme, type PanelThemeFamily, } from './theme/use-theme.js';
3
3
  export { Portal, PortalHost, PortalProvider } from './primitives/portal.js';
4
4
  export { Text, type TextProps } from './primitives/text.js';
5
5
  export { AnimatedPressable, type AnimatedPressableProps, } from './primitives/animated-pressable.js';
6
- export { Alert, type AlertProps } from './components/alert/index.js';
6
+ export { Alert, type AlertProps, type AlertIndicatorProps, } from './components/alert/index.js';
7
7
  export { Avatar, type AvatarProps } from './components/avatar/index.js';
8
8
  export { Badge, type BadgeProps } from './components/badge/index.js';
9
9
  export { BottomSheet, type BottomSheetProps, type BottomSheetContentProps, } from './components/bottom-sheet/index.js';
10
10
  export { Button, type ButtonProps } from './components/button/index.js';
11
11
  export { Dialog, type DialogProps, type DialogContentProps, } from './components/dialog/index.js';
12
+ export { Frame, type FrameProps } from './components/frame/index.js';
13
+ export { InlineSelect, type InlineSelectProps, type InlineSelectItemProps, } from './components/inline-select/index.js';
12
14
  export { Select, type SelectProps, type SelectItemProps } from './components/select/index.js';
13
15
  export { Tabs, type TabsProps, type TabsListProps, type TabsTriggerProps, type TabsContentProps, } from './components/tabs/index.js';
14
16
  export { Card, type CardProps } from './components/card/index.js';
15
17
  export { Checkbox, type CheckboxProps } from './components/checkbox/index.js';
18
+ export { EmptyState, type EmptyStateProps, type EmptyStateMediaProps, } from './components/empty-state/index.js';
16
19
  export { Input, type InputProps } from './components/input/index.js';
20
+ export { InputGroup, type InputGroupProps, type InputGroupInputProps, type InputGroupDecoratorProps, } from './components/input-group/index.js';
21
+ export { Label, type LabelProps, type LabelTextProps } from './components/label/index.js';
22
+ export { Progress, type ProgressProps } from './components/progress/index.js';
17
23
  export { RadioGroup, type RadioGroupProps, type RadioGroupItemProps, } from './components/radio-group/index.js';
18
24
  export { Skeleton, type SkeletonProps } from './components/skeleton/index.js';
19
25
  export { Spinner, type SpinnerProps } from './components/spinner/index.js';
26
+ export { Steps, type StepsProps, type StepsItemProps, type StepsTriggerProps, type StepsIndicatorProps, type StepsSeparatorProps, type StepState, type StepsOrientation, } from './components/steps/index.js';
20
27
  export { Switch, type SwitchProps } from './components/switch/index.js';
21
- export { CheckIcon, ChevronDownIcon, XIcon, type IconProps } from './icons/index.js';
28
+ export { Toast, ToastViewport, toast, useToast, type ToastProps, type ToastOptions, type ToastItem, type ToastVariant, type ToastPlacement, type ToastHandle, type ToastIndicatorProps, type ToastCloseProps, } from './components/toast/index.js';
29
+ export { Typography, type TypographyProps, type TypographyType, type TypographyHeadingProps, type TypographyParagraphProps, type TypographyCodeProps, } from './components/typography/index.js';
30
+ export { AlertTriangleIcon, ArrowUpRightIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, InfoIcon, MoonIcon, SearchIcon, SunIcon, XIcon, type IconProps, } from './icons/index.js';
22
31
  export { cn } from './utils/cn.js';
23
32
  //# sourceMappingURL=index.d.ts.map