@nimbus-ds/components 5.57.0 → 5.57.2-rc.1

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 (92) hide show
  1. package/package.json +2 -2
  2. package/dist/Accordion/index.d.ts +0 -160
  3. package/dist/Accordion/index.js +0 -2
  4. package/dist/Alert/index.d.ts +0 -60
  5. package/dist/Alert/index.js +0 -2
  6. package/dist/Badge/index.d.ts +0 -55
  7. package/dist/Badge/index.js +0 -2
  8. package/dist/Box/index.d.ts +0 -788
  9. package/dist/Box/index.js +0 -2
  10. package/dist/Button/index.d.ts +0 -88
  11. package/dist/Button/index.js +0 -2
  12. package/dist/CHANGELOG.md +0 -919
  13. package/dist/Card/index.d.ts +0 -153
  14. package/dist/Card/index.js +0 -2
  15. package/dist/Checkbox/index.d.ts +0 -68
  16. package/dist/Checkbox/index.js +0 -2
  17. package/dist/Chip/index.d.ts +0 -59
  18. package/dist/Chip/index.js +0 -2
  19. package/dist/Collapsible/index.d.ts +0 -45
  20. package/dist/Collapsible/index.js +0 -2
  21. package/dist/Divider/index.d.ts +0 -43
  22. package/dist/Divider/index.js +0 -2
  23. package/dist/FileUploader/index.d.ts +0 -209
  24. package/dist/FileUploader/index.js +0 -2
  25. package/dist/Icon/index.d.ts +0 -122
  26. package/dist/Icon/index.js +0 -2
  27. package/dist/IconButton/index.d.ts +0 -173
  28. package/dist/IconButton/index.js +0 -2
  29. package/dist/Input/index.d.ts +0 -76
  30. package/dist/Input/index.js +0 -2
  31. package/dist/Label/index.d.ts +0 -55
  32. package/dist/Label/index.js +0 -2
  33. package/dist/Link/index.d.ts +0 -115
  34. package/dist/Link/index.js +0 -2
  35. package/dist/List/index.d.ts +0 -105
  36. package/dist/List/index.js +0 -2
  37. package/dist/Modal/index.d.ts +0 -239
  38. package/dist/Modal/index.js +0 -2
  39. package/dist/MultiSelect/index.d.ts +0 -107
  40. package/dist/MultiSelect/index.js +0 -2
  41. package/dist/Pagination/index.d.ts +0 -41
  42. package/dist/Pagination/index.js +0 -2
  43. package/dist/Popover/index.d.ts +0 -166
  44. package/dist/Popover/index.js +0 -2
  45. package/dist/ProgressBar/index.d.ts +0 -72
  46. package/dist/ProgressBar/index.js +0 -2
  47. package/dist/README.md +0 -235
  48. package/dist/Radio/index.d.ts +0 -62
  49. package/dist/Radio/index.js +0 -2
  50. package/dist/ScrollPane/index.d.ts +0 -921
  51. package/dist/ScrollPane/index.js +0 -2
  52. package/dist/SegmentedControl/index.d.ts +0 -890
  53. package/dist/SegmentedControl/index.js +0 -2
  54. package/dist/Select/index.d.ts +0 -87
  55. package/dist/Select/index.js +0 -2
  56. package/dist/Sidebar/index.d.ts +0 -390
  57. package/dist/Sidebar/index.js +0 -2
  58. package/dist/Skeleton/index.d.ts +0 -31
  59. package/dist/Skeleton/index.js +0 -2
  60. package/dist/Slider/index.d.ts +0 -158
  61. package/dist/Slider/index.js +0 -2
  62. package/dist/Spinner/index.d.ts +0 -53
  63. package/dist/Spinner/index.js +0 -2
  64. package/dist/SplitButton/index.d.ts +0 -1018
  65. package/dist/SplitButton/index.js +0 -2
  66. package/dist/Stepper/index.d.ts +0 -883
  67. package/dist/Stepper/index.js +0 -2
  68. package/dist/Table/index.d.ts +0 -193
  69. package/dist/Table/index.js +0 -2
  70. package/dist/Tabs/index.d.ts +0 -92
  71. package/dist/Tabs/index.js +0 -2
  72. package/dist/Tag/index.d.ts +0 -51
  73. package/dist/Tag/index.js +0 -2
  74. package/dist/Text/index.d.ts +0 -608
  75. package/dist/Text/index.js +0 -2
  76. package/dist/Textarea/index.d.ts +0 -76
  77. package/dist/Textarea/index.js +0 -2
  78. package/dist/Thumbnail/index.d.ts +0 -73
  79. package/dist/Thumbnail/index.js +0 -2
  80. package/dist/TimePicker/index.d.ts +0 -343
  81. package/dist/TimePicker/index.js +0 -2
  82. package/dist/Title/index.d.ts +0 -165
  83. package/dist/Title/index.js +0 -2
  84. package/dist/Toast/index.d.ts +0 -71
  85. package/dist/Toast/index.js +0 -2
  86. package/dist/Toggle/index.d.ts +0 -48
  87. package/dist/Toggle/index.js +0 -2
  88. package/dist/Tooltip/index.d.ts +0 -47
  89. package/dist/Tooltip/index.js +0 -2
  90. package/dist/components-props.json +0 -1
  91. package/dist/index.d.ts +0 -4813
  92. package/dist/index.js +0 -2
@@ -1,165 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { HTMLAttributes, ReactNode } from 'react';
5
-
6
- export interface Conditions<T> {
7
- xs?: T;
8
- md?: T;
9
- lg?: T;
10
- xl?: T;
11
- xxl?: T;
12
- }
13
- export type TextAlign = "left" | "right" | "center" | "justify";
14
- declare const propertiesTitle: {
15
- color: {
16
- "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
17
- "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
- "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
- "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
- "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
- "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
- "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
- "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
- "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
- "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
- "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
- };
28
- textAlign: TextAlign[];
29
- fontSize: {
30
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
32
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
33
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
34
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
36
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
37
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
38
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
39
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
40
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
41
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
42
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
43
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
44
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
45
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
46
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
47
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
48
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
49
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
50
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
51
- h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
52
- h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
53
- h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
54
- h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
55
- h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
56
- h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
57
- };
58
- fontWeight: {
59
- regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
60
- medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
61
- bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
62
- };
63
- lineHeight: {
64
- "0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
65
- "1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
66
- "1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
67
- "2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
68
- "2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
69
- "3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
70
- "3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
71
- "4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
72
- "4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
73
- "5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
74
- "6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
75
- "7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
76
- "8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
77
- "9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
78
- "10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
79
- "11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
80
- "12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
81
- "14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
82
- "16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
83
- "18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
84
- "20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
85
- h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
86
- h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
87
- h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
88
- h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
89
- h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
90
- h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
91
- };
92
- };
93
- export type TitleColorProperties = keyof typeof propertiesTitle.color;
94
- export type TitleFontSizeProperties = keyof typeof propertiesTitle.fontSize;
95
- export type TitleFontWeightProperties = keyof typeof propertiesTitle.fontWeight;
96
- export type TitleLineHeightProperties = keyof typeof propertiesTitle.lineHeight;
97
- export type TitleConditions<T> = Conditions<T>;
98
- export interface TitleSprinkle {
99
- /**
100
- * The fontSize property sets the size of the title.
101
- * @default base
102
- */
103
- fontSize?: TitleFontSizeProperties | TitleConditions<TitleFontSizeProperties>;
104
- /**
105
- * The fontWeight property sets how thick or thin characters in title should be displayed.
106
- * @default regular
107
- */
108
- fontWeight?: TitleFontWeightProperties | TitleConditions<TitleFontWeightProperties>;
109
- /**
110
- * The lineHeight property specifies the line height of the title.
111
- * @default base
112
- */
113
- lineHeight?: TitleLineHeightProperties | TitleConditions<TitleLineHeightProperties>;
114
- /**
115
- * The textAlign property specifies the horizontal alignment of title.
116
- * @default left
117
- */
118
- textAlign?: TextAlign | TitleConditions<TextAlign>;
119
- /**
120
- * The color property is used to set the color of the title.
121
- * @default neutral-textLow
122
- */
123
- color?: TitleColorProperties | TitleConditions<TitleColorProperties>;
124
- }
125
- export interface SkeletonProperties {
126
- /**
127
- * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
128
- */
129
- width: string;
130
- /**
131
- * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
132
- */
133
- height: string;
134
- /**
135
- * The border radius of the skeleton.
136
- */
137
- borderRadius?: string;
138
- /**
139
- * This is an attribute used to identify a DOM node for testing purposes.
140
- */
141
- "data-testid"?: string;
142
- }
143
- export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
144
- export type TitleSkeletonProperties = Pick<TitleProps, "as"> & Partial<Pick<SkeletonProps, "width" | "height" | "className" | "data-testid">>;
145
- export type TitleSkeletonProps = TitleSkeletonProperties;
146
- export declare const TitleSkeleton: React.FC<TitleSkeletonProps>;
147
- export interface TitleComponents {
148
- Skeleton: typeof TitleSkeleton;
149
- }
150
- export interface TitleProperties extends TitleSprinkle {
151
- /**
152
- * The content of the title.
153
- * @TJS-type React.ReactNode
154
- */
155
- children: ReactNode;
156
- /**
157
- * Type of html tag to create for the title.
158
- * @default h1
159
- */
160
- as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
161
- }
162
- export type TitleProps = TitleProperties & HTMLAttributes<HTMLHeadingElement>;
163
- export declare const Title: React.FC<TitleProps> & TitleComponents;
164
-
165
- export {};
@@ -1,2 +0,0 @@
1
- "use client";
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles"],t):"object"==typeof exports?exports["@nimbus-ds/components"]=t(require("react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=t(e.react,e["@nimbus-ds/styles"])}(global,((e,t)=>(()=>{"use strict";var r={9003:(e,t,r)=>{function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function o(e,t){var r=e;for(var n of t){if(!(n in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=e.constructor();for(var o in e){var a=e[o],c=[...r,o];"string"==typeof a||"number"==typeof a||null==a?n[o]=t(a,c):"object"!=typeof a||Array.isArray(a)?console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"')):n[o]=i(a,t,c)}return n}function a(e,t){var r={};if("object"==typeof t){var a=e;i(t,((e,t)=>{if(null!=e){var i=o(a,t);r[n(i)]=String(e)}}))}else{var c=e;for(var l in c){var s=c[l];null!=s&&(r[n(l)]=s)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}function c(e,t,r){e.style.setProperty(n(t),r)}function l(e,t,r){if("object"==typeof r){var n=t;i(r,((t,r)=>{null!=t&&c(e,o(n,r),String(t))}))}else{var a=t;for(var l in a){null!=a[l]&&c(e,l,a[l])}}}r.r(t),r.d(t,{assignInlineVars:()=>a,setElementVars:()=>l})},5579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(5608).__importDefault(r(9155)),o=r(9003),i=r(4367),a=({className:e,style:t,height:r,width:a,borderRadius:c="0",...l})=>n.default.createElement("div",{className:[e,i.skeleton.classnames.base].filter(Boolean).join(" "),style:(0,o.assignInlineVars)({[i.vars.width]:a,[i.vars.height]:r,[i.vars.borderRadius]:c}),...l});t.Skeleton=a,a.displayName="Skeleton"},7940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(5579);var o=r(5579);Object.defineProperty(t,"Skeleton",{enumerable:!0,get:function(){return o.Skeleton}}),t.default=n.Skeleton},9993:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const n=r(5608).__importDefault(r(9155)),o=r(4367),i=r(7098),a=({className:e,style:t,as:r="h1",color:i="neutral-textHigh",textAlign:a="left",lineHeight:c,fontWeight:l="bold",fontSize:s,children:u,...f})=>n.default.createElement(r,{...f,className:[e,o.title.sprinkle({color:i,textAlign:a,lineHeight:c,fontWeight:l,fontSize:s}),o.title.classnames.appearance[r]].filter(Boolean).join(" ")},u);t.Title=a,a.displayName="Title",(a.Skeleton=i.TitleSkeleton).displayName="Title.Skeleton"},3684:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5608);n.__exportStar(r(2353),t),n.__exportStar(r(7098),t)},9419:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TitleSkeleton=void 0;const n=r(5608).__importDefault(r(9155)),o=r(7940),i=r(217);t.TitleSkeleton=({className:e,as:t="h1",width:r,height:a,"data-testid":c})=>n.default.createElement(o.Skeleton,{className:e,width:r??i.sizes[t].width,height:a??i.sizes[t].height,"data-testid":c,borderRadius:"0.25rem"})},4620:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TitleSkeleton=void 0;const n=r(9419);var o=r(9419);Object.defineProperty(t,"TitleSkeleton",{enumerable:!0,get:function(){return o.TitleSkeleton}}),t.default=n.TitleSkeleton},217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sizes=void 0,t.sizes={h1:{width:"8.25rem",height:"2.75rem"},h2:{width:"6.188rem",height:"1.75rem"},h3:{width:"5.188rem",height:"1.75rem"},h4:{width:"4.625rem",height:"1.5rem"},h5:{width:"4.125rem",height:"1.25rem"},h6:{width:"3.625rem",height:"1.125rem"}}},7098:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});r(5608).__exportStar(r(4620),t)},2353:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const n=r(9993);var o=r(9993);Object.defineProperty(t,"Title",{enumerable:!0,get:function(){return o.Title}}),t.default=n.Title},4367:e=>{e.exports=t},9155:t=>{t.exports=e},5608:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>R,__assign:()=>i,__asyncDelegator:()=>P,__asyncGenerator:()=>O,__asyncValues:()=>x,__await:()=>S,__awaiter:()=>y,__classPrivateFieldGet:()=>D,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>I,__createBinding:()=>h,__decorate:()=>c,__disposeResources:()=>z,__esDecorate:()=>s,__exportStar:()=>v,__extends:()=>o,__generator:()=>_,__importDefault:()=>A,__importStar:()=>E,__makeTemplateObject:()=>T,__metadata:()=>d,__param:()=>l,__propKey:()=>f,__read:()=>m,__rest:()=>a,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>j,__spreadArrays:()=>g,__values:()=>b,default:()=>F});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function s(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var h=(0,r[d])("accessor"===l?{get:f.get,set:f.set}:f[s],y);if("accessor"===l){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(c=a(h.get))&&(f.get=c),(c=a(h.set))&&(f.set=c),(c=a(h.init))&&o.unshift(c)}else(c=a(h))&&("field"===l?o.unshift(c):f[s]=c)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}l((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}var h=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function v(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||h(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function j(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function O(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof S?Promise.resolve(r.value.v).then(l,s):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function l(e){c("next",e)}function s(e){c("throw",e)}function u(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:S(e[n](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&h(t,e,r);return k(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function D(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function z(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const F={__extends:o,__assign:i,__rest:a,__decorate:c,__param:l,__metadata:d,__awaiter:y,__generator:_,__createBinding:h,__exportStar:v,__values:b,__read:m,__spread:w,__spreadArrays:g,__spreadArray:j,__await:S,__asyncGenerator:O,__asyncDelegator:P,__asyncValues:x,__makeTemplateObject:T,__importStar:E,__importDefault:A,__classPrivateFieldGet:D,__classPrivateFieldSet:I,__classPrivateFieldIn:M,__addDisposableResource:R,__disposeResources:z}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,o),i.exports}return o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(3684)})()));
@@ -1,71 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { HTMLAttributes, ReactNode } from 'react';
5
-
6
- export type ToastOffset = "default" | "high";
7
- export type ToastBehavior = "stacked" | "single";
8
- export interface ToastProviderProperties {
9
- /**
10
- * @TJS-type React.ReactNode
11
- */
12
- children: ReactNode;
13
- /**
14
- * Controls the vertical offset of the toast container from the bottom.
15
- * Use "high" for mobile apps with bottom navigation bars.
16
- * @default "default"
17
- */
18
- offset?: ToastOffset;
19
- /**
20
- * Controls how multiple toasts are handled.
21
- * "stacked" - new toasts are piled up alongside already rendered ones.
22
- * "single" - only one toast is shown at a time; each new toast immediately replaces the previous one.
23
- * @default "stacked"
24
- */
25
- behavior?: ToastBehavior;
26
- }
27
- export type ToastProviderProps = ToastProviderProperties;
28
- export declare const ToastProvider: React.FC<ToastProviderProps>;
29
- export interface ToastComponents {
30
- Provider: typeof ToastProvider;
31
- }
32
- export type Types = "primary" | "success" | "danger" | "progress";
33
- export interface ToastProperties {
34
- /**
35
- * Unique toast ID used when hiding or removing a toast.
36
- */
37
- id: string;
38
- /**
39
- * The text that should appear in the toast message.
40
- */
41
- text: string;
42
- /**
43
- * Change the visual style of the toast.
44
- * @default primary
45
- */
46
- type?: Types;
47
- /**
48
- * The time in milliseconds that the toast message should persist.
49
- * @default 4000
50
- */
51
- duration?: 4000 | 8000 | 16000;
52
- /**
53
- * Tells you whether or not Toast should close automatically.
54
- * @default true
55
- */
56
- autoClose?: boolean;
57
- /**
58
- * Tells the toast position when we are using multiple toasts.
59
- * @default 0
60
- */
61
- position?: number;
62
- }
63
- export type ToastProps = ToastProperties & HTMLAttributes<HTMLDivElement>;
64
- export declare const Toast: React.FC<ToastProps> & ToastComponents;
65
- export interface ToastContextProps {
66
- closeToast: (id: string) => void;
67
- addToast: (toast: Omit<ToastProps, "autoClose">) => void;
68
- }
69
- export declare const useToast: () => ToastContextProps;
70
-
71
- export {};