@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,76 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { ComponentPropsWithRef, HTMLAttributes } from 'react';
5
-
6
- export interface SkeletonProperties {
7
- /**
8
- * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
9
- */
10
- width: string;
11
- /**
12
- * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
13
- */
14
- height: string;
15
- /**
16
- * The border radius of the skeleton.
17
- */
18
- borderRadius?: string;
19
- /**
20
- * This is an attribute used to identify a DOM node for testing purposes.
21
- */
22
- "data-testid"?: string;
23
- }
24
- export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
25
- export type TextareaSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "className" | "data-testid">>;
26
- export type TextareaSkeletonProps = TextareaSkeletonProperties;
27
- export declare const TextareaSkeleton: React.FC<TextareaSkeletonProps>;
28
- export interface TextareaComponents {
29
- Skeleton: typeof TextareaSkeleton;
30
- }
31
- export interface TextareaProperties {
32
- /**
33
- * Change the visual style of the textarea.
34
- * @default neutral
35
- */
36
- appearance?: "neutral" | "success" | "warning" | "danger" | "ai-generative" | "transparent";
37
- /**
38
- * Highlights the field to indicate its value was generated by AI.
39
- * Applies AI gradient border, white background and an AI focus ring.
40
- */
41
- aiGenerated?: boolean;
42
- /**
43
- * Number of lines to be rendered for the user to input text
44
- * @default 2
45
- */
46
- lines?: number;
47
- /**
48
- * Controls intrinsic sizing behavior of the field. When true, the textarea will grow with content up to the maxLines limit (if provided) and then scroll.
49
- * @default false
50
- */
51
- autoGrow?: boolean;
52
- /**
53
- * Caps the textarea visual height to the given number of lines.
54
- * When used together with autoGrow=true, the textarea will grow
55
- * with content up to this limit and then scroll.
56
- */
57
- maxLines?: number;
58
- /**
59
- * Sets the minimum height of the textarea to the given number of lines.
60
- * The textarea will never shrink below this height, even when empty.
61
- */
62
- minLines?: number;
63
- /**
64
- * ID of the textarea
65
- * */
66
- id: string;
67
- /**
68
- * Enable/disable textarea resize functionality
69
- * @default true
70
- */
71
- resize?: boolean;
72
- }
73
- export declare const Textarea: React.ForwardRefExoticComponent<TextareaProperties & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.InputHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>> & TextareaComponents;
74
- export type TextareaProps = ComponentPropsWithRef<typeof Textarea>;
75
-
76
- 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 a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=e.constructor();for(var o in e){var i=e[o],s=[...r,o];"string"==typeof i||"number"==typeof i||null==i?n[o]=t(i,s):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):n[o]=a(i,t,s)}return n}function i(e,t){var r={};if("object"==typeof t){var i=e;a(t,((e,t)=>{if(null!=e){var a=o(i,t);r[n(a)]=String(e)}}))}else{var s=e;for(var c in s){var l=s[c];null!=l&&(r[n(c)]=l)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}function s(e,t,r){e.style.setProperty(n(t),r)}function c(e,t,r){if("object"==typeof r){var n=t;a(r,((t,r)=>{null!=t&&s(e,o(n,r),String(t))}))}else{var i=t;for(var c in i){null!=i[c]&&s(e,c,i[c])}}}r.r(t),r.d(t,{assignInlineVars:()=>i,setElementVars:()=>c})},5579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(5608).__importDefault(r(9155)),o=r(9003),a=r(4367),i=({className:e,style:t,height:r,width:i,borderRadius:s="0",...c})=>n.default.createElement("div",{className:[e,a.skeleton.classnames.base].filter(Boolean).join(" "),style:(0,o.assignInlineVars)({[a.vars.width]:i,[a.vars.height]:r,[a.vars.borderRadius]:s}),...c});t.Skeleton=i,i.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},8899:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.adjustTextareaHeightFallback=void 0;t.adjustTextareaHeightFallback=(e,t,r)=>{const n=window.getComputedStyle(e),o=Number.parseFloat(n.lineHeight)||16,a=(Number.parseFloat(n.paddingTop)||0)+(Number.parseFloat(n.paddingBottom)||0)+((Number.parseFloat(n.borderTopWidth)||0)+(Number.parseFloat(n.borderBottomWidth)||0));e.style.height="auto";const{scrollHeight:i}=e,s=t?t*o+a:0,c=r?r*o+a:1/0;let l=Math.max(i,s);c!==1/0&&(l=Math.min(l,c)),e.style.height=`${l}px`,e.style.overflowY=l>=c?"auto":"hidden"}},7849:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Textarea=void 0;const n=r(5608).__importStar(r(9155)),o=r(4367),a=r(3606),i=r(8899),s=(0,n.forwardRef)((({className:e,style:t,appearance:r="neutral",aiGenerated:a=!1,lines:s=2,autoGrow:c=!1,maxLines:l,minLines:u,id:f,resize:p=!0,value:d,defaultValue:y,..._},b)=>{const v=(0,n.useRef)(null),h=(0,n.useMemo)((()=>"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("field-sizing","content")),[]),m=(0,n.useRef)(0),w=(0,n.useCallback)((()=>{const e=v.current;if(!e||!c||h)return;const t=e.scrollHeight;t!==m.current&&((0,i.adjustTextareaHeightFallback)(e,u,l),m.current=t)}),[c,u,l,h]);(0,n.useEffect)((()=>{w()}),[w,c,h,d,y]);const g=(0,n.useCallback)((e=>{v.current=e,"function"==typeof b?b(e):b&&(b.current=e)}),[b]),S=(0,n.useMemo)((()=>({...l&&{maxHeight:`calc(${l}lh + var(--textarea-vertical-padding) + var(--textarea-vertical-borders))`,overflowY:"auto"},...u&&{minHeight:`calc(${u}lh + var(--textarea-vertical-padding) + var(--textarea-vertical-borders))`}})),[l,u]),j=(0,n.useCallback)((e=>{_.onInput?.(e),w()}),[_,w]),x=(0,n.useCallback)((e=>{_.onChange?.(e),w()}),[_,w]),O=[e,a&&o.textarea.classnames.aiGenerated,o.textarea.classnames.appearance[r],c&&o.textarea.classnames.fieldSizing,o.textarea.classnames.resize[p?"enabled":"disabled"]].filter(Boolean).join(" ");return n.default.createElement("textarea",{..._,onInput:j,onChange:x,ref:g,className:O,rows:s,id:f,style:S,value:d,defaultValue:y})}));t.Textarea=s,s.displayName="Textarea",s.Skeleton=a.TextareaSkeleton,s.Skeleton.displayName="Textarea.Skeleton"},2688:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5608);n.__exportStar(r(1237),t),n.__exportStar(r(3606),t)},8279:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaSkeleton=void 0;const n=r(5608).__importDefault(r(9155)),o=r(7940);t.TextareaSkeleton=({className:e,width:t,"data-testid":r})=>n.default.createElement(o.Skeleton,{className:e,width:t??"15rem",height:"3.375rem",borderRadius:"0.5rem","data-testid":r})},6914:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaSkeleton=void 0;const n=r(8279);var o=r(8279);Object.defineProperty(t,"TextareaSkeleton",{enumerable:!0,get:function(){return o.TextareaSkeleton}}),t.default=n.TextareaSkeleton},3606:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});r(5608).__exportStar(r(6914),t)},1237:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Textarea=void 0;const n=r(7849);var o=r(7849);Object.defineProperty(t,"Textarea",{enumerable:!0,get:function(){return o.Textarea}}),t.default=n.Textarea},4367:e=>{e.exports=t},9155:t=>{t.exports=e},5608:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>C,__assign:()=>a,__asyncDelegator:()=>O,__asyncGenerator:()=>x,__asyncValues:()=>P,__await:()=>j,__awaiter:()=>y,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>F,__createBinding:()=>b,__decorate:()=>s,__disposeResources:()=>N,__esDecorate:()=>l,__exportStar:()=>v,__extends:()=>o,__generator:()=>_,__importDefault:()=>M,__importStar:()=>E,__makeTemplateObject:()=>T,__metadata:()=>d,__param:()=>c,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>g,__values:()=>h,default:()=>A});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 a=function(){return a=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},a.apply(this,arguments)};function i(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 s(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"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");a.push(i(e||null))};var b=(0,r[d])("accessor"===c?{get:f.get,set:f.set}:f[l],y);if("accessor"===c){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(s=i(b.get))&&(f.get=s),(s=i(b.set))&&(f.set=s),(s=i(b.init))&&o.unshift(s)}else(s=i(b))&&("field"===c?o.unshift(s):f[l]=s)}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,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var b=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)||b(t,e,r)}function h(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,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}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 a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n}function S(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;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 j(e){return this instanceof j?(this.v=e,this):new j(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=o[e](t)).value instanceof j?Promise.resolve(r.value.v).then(c,l):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function O(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:j(e[n](t)),done:!1}:o?o(t):t}:o}}function P(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(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)&&b(t,e,r);return k(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function R(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 F(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 I(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 C(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 D="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 N(e){function t(t){e.error=e.hasError?new D(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 A={__extends:o,__assign:a,__rest:i,__decorate:s,__param:c,__metadata:d,__awaiter:y,__generator:_,__createBinding:b,__exportStar:v,__values:h,__read:m,__spread:w,__spreadArrays:g,__spreadArray:S,__await:j,__asyncGenerator:x,__asyncDelegator:O,__asyncValues:P,__makeTemplateObject:T,__importStar:E,__importDefault:M,__classPrivateFieldGet:R,__classPrivateFieldSet:F,__classPrivateFieldIn:I,__addDisposableResource:C,__disposeResources:N}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.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(2688)})()));
@@ -1,73 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { HTMLAttributes, ImgHTMLAttributes, ReactNode } from 'react';
5
-
6
- export type AspectRatio = "1/1" | "16/9" | "9/16" | "4/3" | "3/4" | "2/1" | "1/2";
7
- declare const thumbnail: {
8
- sprinkle: ((props: {
9
- aspectRatio?: AspectRatio | undefined;
10
- }) => string) & {
11
- properties: Set<"aspectRatio">;
12
- };
13
- properties: {
14
- aspectRatio: AspectRatio[];
15
- };
16
- classnames: {
17
- container: string;
18
- container__image: string;
19
- container__placeholder: string;
20
- skeleton: string;
21
- width: string;
22
- };
23
- };
24
- export interface SkeletonProperties {
25
- /**
26
- * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
27
- */
28
- width: string;
29
- /**
30
- * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
31
- */
32
- height: string;
33
- /**
34
- * The border radius of the skeleton.
35
- */
36
- borderRadius?: string;
37
- /**
38
- * This is an attribute used to identify a DOM node for testing purposes.
39
- */
40
- "data-testid"?: string;
41
- }
42
- export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
43
- export type ThumbnailSkeletonProperties = Partial<Pick<ThumbnailProps, "aspectRatio">> & Partial<Pick<SkeletonProps, "width" | "className" | "data-testid">>;
44
- export type ThumbnailSkeletonProps = ThumbnailSkeletonProperties;
45
- export declare const ThumbnailSkeleton: React.FC<ThumbnailSkeletonProps>;
46
- export interface ThumbnailComponents {
47
- Skeleton: typeof ThumbnailSkeleton;
48
- }
49
- export interface ThumbnailProperties {
50
- /**
51
- * The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
52
- */
53
- alt: string;
54
- /**
55
- * The content of the thumbnail.
56
- * @TJS-type React.ReactNode
57
- */
58
- children?: ReactNode;
59
- /**
60
- * Permitted aspect ratios for the size of the thumbnail image.
61
- * @default 1/1
62
- */
63
- aspectRatio?: (typeof thumbnail.properties.aspectRatio)[number];
64
- /**
65
- * Width value of the thumbnail image. Defaults to 100%.
66
- * @default 100%
67
- */
68
- width?: string;
69
- }
70
- export type ThumbnailProps = ThumbnailProperties & ImgHTMLAttributes<HTMLImageElement>;
71
- export declare const Thumbnail: React.FC<ThumbnailProps> & ThumbnailComponents;
72
-
73
- export {};