@salutejs/plasma-new-hope 0.162.0-canary.1470.11195366738.0 → 0.162.0-canary.1472.11217989006.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
  2. package/cjs/components/Attach/Attach.css +3 -3
  3. package/cjs/components/Attach/Attach.js +13 -9
  4. package/cjs/components/Attach/Attach.js.map +1 -1
  5. package/cjs/components/Attach/Attach.styles.js +1 -1
  6. package/cjs/components/Attach/Attach.styles.js.map +1 -1
  7. package/cjs/components/Attach/Attach.styles_o2bcu1.css +3 -0
  8. package/cjs/components/Attach/utils/addSeparator.js +18 -0
  9. package/cjs/components/Attach/utils/addSeparator.js.map +1 -0
  10. package/cjs/components/Attach/utils/index.js +11 -0
  11. package/cjs/components/Attach/utils/index.js.map +1 -0
  12. package/cjs/index.css +3 -3
  13. package/emotion/cjs/components/Attach/Attach.js +9 -6
  14. package/emotion/cjs/components/Attach/Attach.styles.js +3 -3
  15. package/emotion/cjs/components/Attach/utils/addSeparator.js +16 -0
  16. package/emotion/cjs/components/Attach/utils/index.js +9 -7
  17. package/emotion/es/components/Attach/Attach.js +10 -7
  18. package/emotion/es/components/Attach/Attach.styles.js +3 -3
  19. package/emotion/es/components/Attach/utils/addSeparator.js +10 -0
  20. package/emotion/es/components/Attach/utils/index.js +2 -1
  21. package/es/components/Accordion/ui/AccordionItem/AccordionItem.js.map +1 -1
  22. package/es/components/Attach/Attach.css +3 -3
  23. package/es/components/Attach/Attach.js +13 -9
  24. package/es/components/Attach/Attach.js.map +1 -1
  25. package/es/components/Attach/Attach.styles.js +1 -1
  26. package/es/components/Attach/Attach.styles.js.map +1 -1
  27. package/es/components/Attach/Attach.styles_o2bcu1.css +3 -0
  28. package/es/components/Attach/utils/addSeparator.js +14 -0
  29. package/es/components/Attach/utils/addSeparator.js.map +1 -0
  30. package/es/components/Attach/utils/index.js +7 -0
  31. package/es/components/Attach/utils/index.js.map +1 -0
  32. package/es/index.css +3 -3
  33. package/package.json +4 -4
  34. package/styled-components/cjs/components/Attach/Attach.js +9 -6
  35. package/styled-components/cjs/components/Attach/Attach.styles.js +1 -1
  36. package/styled-components/cjs/components/Attach/utils/addSeparator.js +16 -0
  37. package/styled-components/cjs/components/Attach/utils/index.js +9 -7
  38. package/styled-components/es/components/Attach/Attach.js +10 -7
  39. package/styled-components/es/components/Attach/Attach.styles.js +1 -1
  40. package/styled-components/es/components/Attach/utils/addSeparator.js +10 -0
  41. package/styled-components/es/components/Attach/utils/index.js +2 -1
  42. package/types/components/Accordion/Accordion.d.ts +2 -2
  43. package/types/components/Accordion/Accordion.types.d.ts +4 -4
  44. package/types/components/Accordion/Accordion.types.d.ts.map +1 -1
  45. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +1 -2
  46. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +1 -1
  47. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +11 -8
  48. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +1 -1
  49. package/types/components/Accordion/utils/index.d.ts +1 -15
  50. package/types/components/Accordion/utils/index.d.ts.map +1 -1
  51. package/types/components/Attach/Attach.d.ts.map +1 -1
  52. package/types/components/Attach/Attach.styles.d.ts.map +1 -1
  53. package/types/components/Attach/utils/addSeparator.d.ts +2 -0
  54. package/types/components/Attach/utils/addSeparator.d.ts.map +1 -0
  55. package/types/components/Attach/utils/index.d.ts +2 -1
  56. package/types/components/Attach/utils/index.d.ts.map +1 -1
  57. package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -2
  58. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  59. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +6 -5
  60. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  61. package/types/components/Combobox/ComboboxNew/index.d.ts +0 -2
  62. package/types/components/Combobox/ComboboxNew/index.d.ts.map +1 -1
  63. package/types/components/Combobox/index.d.ts +0 -1
  64. package/types/components/Combobox/index.d.ts.map +1 -1
  65. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts +1 -1
  66. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +6 -126
  67. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  68. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts +1 -1
  69. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +6 -126
  70. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  71. package/cjs/components/Attach/Attach.styles_fl8wha.css +0 -3
  72. package/cjs/components/Attach/utils/truncateFilename.js +0 -24
  73. package/cjs/components/Attach/utils/truncateFilename.js.map +0 -1
  74. package/emotion/cjs/components/Attach/utils/truncateFilename.js +0 -23
  75. package/emotion/es/components/Attach/utils/truncateFilename.js +0 -17
  76. package/es/components/Attach/Attach.styles_fl8wha.css +0 -3
  77. package/es/components/Attach/utils/truncateFilename.js +0 -20
  78. package/es/components/Attach/utils/truncateFilename.js.map +0 -1
  79. package/styled-components/cjs/components/Attach/utils/truncateFilename.js +0 -23
  80. package/styled-components/es/components/Attach/utils/truncateFilename.js +0 -17
  81. package/types/components/Attach/utils/truncateFilename.d.ts +0 -7
  82. package/types/components/Attach/utils/truncateFilename.d.ts.map +0 -1
@@ -59,11 +59,11 @@ declare type ViewStateProps = {
59
59
  */
60
60
  alwaysOpened?: true;
61
61
  };
62
- export declare type ComboboxProps<T extends ItemOption = ItemOption> = {
62
+ export interface BasicProps {
63
63
  /**
64
64
  * Список элементов.
65
65
  */
66
- items: Array<T>;
66
+ items: Array<ItemOption>;
67
67
  /**
68
68
  * Сторона открытия дропдауна относительно target элемента.
69
69
  * @default bottom
@@ -119,7 +119,7 @@ export declare type ComboboxProps<T extends ItemOption = ItemOption> = {
119
119
  /**
120
120
  * Callback для кастомной настройки айтема в выпадающем списке.
121
121
  */
122
- renderItem?: (item: T) => React.ReactNode;
122
+ renderItem?: (item: ItemOption) => React.ReactNode;
123
123
  /**
124
124
  * Функция фильтрации элементов.
125
125
  */
@@ -142,14 +142,15 @@ export declare type ComboboxProps<T extends ItemOption = ItemOption> = {
142
142
  * @default outer
143
143
  */
144
144
  labelPlacement?: 'outer' | 'inner';
145
- } & ViewStateProps & IsMultiselect & Omit<ButtonHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
145
+ }
146
+ export declare type ComboboxProps = BasicProps & ViewStateProps & IsMultiselect & Omit<ButtonHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
146
147
  export declare type FloatingPopoverProps = {
147
148
  target: React.ReactNode | ((ref: React.MutableRefObject<HTMLElement | null>) => React.ReactNode);
148
149
  children: React.ReactNode;
149
150
  opened: boolean;
150
151
  onToggle: (opened: boolean) => void;
151
152
  placement: Placement;
152
- portal?: ComboboxProps['portal'];
153
+ portal?: BasicProps['portal'];
153
154
  offset?: number;
154
155
  };
155
156
  export declare type ItemContext = {
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,GACZ;IACI,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,K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BAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACjG,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,oBAAoB,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5D,eAAe,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,5 +1,3 @@
1
1
  export { comboboxConfig, comboboxRoot } from './Combobox';
2
2
  export { tokens as comboboxTokens } from './Combobox.tokens';
3
- export type { ComboboxProps } from './Combobox.types';
4
- export type { ItemOption } from './ui/Inner/ui/Item/Item.types';
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE7D,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  export { comboboxRoot as comboboxOldRoot, comboboxConfig as comboboxOldConfig, comboboxDividerRoot, comboboxDividerConfig, comboboxFooterRoot, comboboxFooterConfig, comboboxGroupRoot, comboboxGroupConfig, comboboxHeaderRoot, comboboxHeaderConfig, comboboxItemRoot, comboboxItemConfig, ComboboxTarget, comboboxClasses as comboboxOldClasses, comboboxTokens as comboboxOldTokens, } from './ComboboxOld';
2
2
  export type { ComboboxProps as ComboboxOldProps } from './ComboboxOld';
3
3
  export { comboboxTokens as comboboxNewTokens, comboboxRoot as comboboxNewRoot, comboboxConfig as comboboxNewConfig, } from './ComboboxNew';
4
- export type { ItemOption, ComboboxProps } from './ComboboxNew';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,EACnC,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,IAAI,kBAAkB,EACrC,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EACH,cAAc,IAAI,iBAAiB,EACnC,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,EACnC,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,IAAI,kBAAkB,EACrC,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EACH,cAAc,IAAI,iBAAiB,EACnC,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC"}
@@ -12,7 +12,7 @@ export declare const Accordion: import("react").FunctionComponent<import("../../
12
12
  xs: import("@linaria/core").LinariaClassName;
13
13
  };
14
14
  }> & {
15
- view: string;
15
+ view?: string | undefined;
16
16
  size?: string | undefined;
17
17
  singleActive?: boolean | undefined;
18
18
  defaultActiveEventKey?: number[] | undefined;
@@ -22,27 +22,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
22
22
  readOnly: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- }> & (({
26
- items: import("../../../..").ItemOption[];
27
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
28
- label?: string | undefined;
29
- placeholder?: string | undefined;
30
- helperText?: string | undefined;
31
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
32
- textBefore?: string | undefined;
33
- textAfter?: string | undefined;
34
- variant?: "normal" | "tight" | undefined;
35
- listOverflow?: import("csstype").Property.Overflow | undefined;
36
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
37
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
38
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
39
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
40
- filter?: ((label: string, textValue: string) => boolean) | undefined;
41
- closeAfterSelect?: boolean | undefined;
42
- size?: string | undefined;
43
- view?: string | undefined;
44
- labelPlacement?: "inner" | "outer" | undefined;
45
- } & {
25
+ }> & ((import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
46
26
  readOnly?: boolean | undefined;
47
27
  disabled?: true | undefined;
48
28
  alwaysOpened?: false | undefined;
@@ -51,27 +31,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
51
31
  value?: string | undefined;
52
32
  onChange?: ((value: string) => void) | undefined;
53
33
  isTargetAmount?: false | undefined;
54
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
55
- items: import("../../../..").ItemOption[];
56
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
57
- label?: string | undefined;
58
- placeholder?: string | undefined;
59
- helperText?: string | undefined;
60
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
61
- textBefore?: string | undefined;
62
- textAfter?: string | undefined;
63
- variant?: "normal" | "tight" | undefined;
64
- listOverflow?: import("csstype").Property.Overflow | undefined;
65
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
66
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
67
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
68
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
69
- filter?: ((label: string, textValue: string) => boolean) | undefined;
70
- closeAfterSelect?: boolean | undefined;
71
- size?: string | undefined;
72
- view?: string | undefined;
73
- labelPlacement?: "inner" | "outer" | undefined;
74
- } & {
34
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
75
35
  readOnly?: boolean | undefined;
76
36
  disabled?: true | undefined;
77
37
  alwaysOpened?: false | undefined;
@@ -80,27 +40,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
80
40
  value?: string[] | undefined;
81
41
  onChange?: ((value: string[]) => void) | undefined;
82
42
  isTargetAmount?: boolean | undefined;
83
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
84
- items: import("../../../..").ItemOption[];
85
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
86
- label?: string | undefined;
87
- placeholder?: string | undefined;
88
- helperText?: string | undefined;
89
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
90
- textBefore?: string | undefined;
91
- textAfter?: string | undefined;
92
- variant?: "normal" | "tight" | undefined;
93
- listOverflow?: import("csstype").Property.Overflow | undefined;
94
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
95
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
96
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
97
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
98
- filter?: ((label: string, textValue: string) => boolean) | undefined;
99
- closeAfterSelect?: boolean | undefined;
100
- size?: string | undefined;
101
- view?: string | undefined;
102
- labelPlacement?: "inner" | "outer" | undefined;
103
- } & {
43
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
104
44
  readOnly?: true | undefined;
105
45
  disabled?: boolean | undefined;
106
46
  alwaysOpened?: false | undefined;
@@ -109,27 +49,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
109
49
  value?: string | undefined;
110
50
  onChange?: ((value: string) => void) | undefined;
111
51
  isTargetAmount?: false | undefined;
112
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
113
- items: import("../../../..").ItemOption[];
114
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
115
- label?: string | undefined;
116
- placeholder?: string | undefined;
117
- helperText?: string | undefined;
118
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
119
- textBefore?: string | undefined;
120
- textAfter?: string | undefined;
121
- variant?: "normal" | "tight" | undefined;
122
- listOverflow?: import("csstype").Property.Overflow | undefined;
123
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
124
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
125
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
126
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
127
- filter?: ((label: string, textValue: string) => boolean) | undefined;
128
- closeAfterSelect?: boolean | undefined;
129
- size?: string | undefined;
130
- view?: string | undefined;
131
- labelPlacement?: "inner" | "outer" | undefined;
132
- } & {
52
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
133
53
  readOnly?: true | undefined;
134
54
  disabled?: boolean | undefined;
135
55
  alwaysOpened?: false | undefined;
@@ -138,27 +58,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
138
58
  value?: string[] | undefined;
139
59
  onChange?: ((value: string[]) => void) | undefined;
140
60
  isTargetAmount?: boolean | undefined;
141
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
142
- items: import("../../../..").ItemOption[];
143
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
144
- label?: string | undefined;
145
- placeholder?: string | undefined;
146
- helperText?: string | undefined;
147
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
148
- textBefore?: string | undefined;
149
- textAfter?: string | undefined;
150
- variant?: "normal" | "tight" | undefined;
151
- listOverflow?: import("csstype").Property.Overflow | undefined;
152
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
153
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
154
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
155
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
156
- filter?: ((label: string, textValue: string) => boolean) | undefined;
157
- closeAfterSelect?: boolean | undefined;
158
- size?: string | undefined;
159
- view?: string | undefined;
160
- labelPlacement?: "inner" | "outer" | undefined;
161
- } & {
61
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
162
62
  readOnly?: false | undefined;
163
63
  disabled?: false | undefined;
164
64
  alwaysOpened?: true | undefined;
@@ -167,27 +67,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
167
67
  value?: string | undefined;
168
68
  onChange?: ((value: string) => void) | undefined;
169
69
  isTargetAmount?: false | undefined;
170
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
171
- items: import("../../../..").ItemOption[];
172
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
173
- label?: string | undefined;
174
- placeholder?: string | undefined;
175
- helperText?: string | undefined;
176
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
177
- textBefore?: string | undefined;
178
- textAfter?: string | undefined;
179
- variant?: "normal" | "tight" | undefined;
180
- listOverflow?: import("csstype").Property.Overflow | undefined;
181
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
182
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
183
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
184
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
185
- filter?: ((label: string, textValue: string) => boolean) | undefined;
186
- closeAfterSelect?: boolean | undefined;
187
- size?: string | undefined;
188
- view?: string | undefined;
189
- labelPlacement?: "inner" | "outer" | undefined;
190
- } & {
70
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
191
71
  readOnly?: false | undefined;
192
72
  disabled?: false | undefined;
193
73
  alwaysOpened?: true | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":";AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":";AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -16,7 +16,7 @@ export declare const Accordion: import("react").FunctionComponent<import("../../
16
16
  fixed: import("@linaria/core").LinariaClassName;
17
17
  };
18
18
  }> & {
19
- view: string;
19
+ view?: string | undefined;
20
20
  size?: string | undefined;
21
21
  singleActive?: boolean | undefined;
22
22
  defaultActiveEventKey?: number[] | undefined;
@@ -22,27 +22,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
22
22
  readOnly: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- }> & (({
26
- items: import("../../../..").ItemOption[];
27
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
28
- label?: string | undefined;
29
- placeholder?: string | undefined;
30
- helperText?: string | undefined;
31
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
32
- textBefore?: string | undefined;
33
- textAfter?: string | undefined;
34
- variant?: "normal" | "tight" | undefined;
35
- listOverflow?: import("csstype").Property.Overflow | undefined;
36
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
37
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
38
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
39
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
40
- filter?: ((label: string, textValue: string) => boolean) | undefined;
41
- closeAfterSelect?: boolean | undefined;
42
- size?: string | undefined;
43
- view?: string | undefined;
44
- labelPlacement?: "inner" | "outer" | undefined;
45
- } & {
25
+ }> & ((import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
46
26
  readOnly?: boolean | undefined;
47
27
  disabled?: true | undefined;
48
28
  alwaysOpened?: false | undefined;
@@ -51,27 +31,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
51
31
  value?: string | undefined;
52
32
  onChange?: ((value: string) => void) | undefined;
53
33
  isTargetAmount?: false | undefined;
54
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
55
- items: import("../../../..").ItemOption[];
56
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
57
- label?: string | undefined;
58
- placeholder?: string | undefined;
59
- helperText?: string | undefined;
60
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
61
- textBefore?: string | undefined;
62
- textAfter?: string | undefined;
63
- variant?: "normal" | "tight" | undefined;
64
- listOverflow?: import("csstype").Property.Overflow | undefined;
65
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
66
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
67
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
68
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
69
- filter?: ((label: string, textValue: string) => boolean) | undefined;
70
- closeAfterSelect?: boolean | undefined;
71
- size?: string | undefined;
72
- view?: string | undefined;
73
- labelPlacement?: "inner" | "outer" | undefined;
74
- } & {
34
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
75
35
  readOnly?: boolean | undefined;
76
36
  disabled?: true | undefined;
77
37
  alwaysOpened?: false | undefined;
@@ -80,27 +40,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
80
40
  value?: string[] | undefined;
81
41
  onChange?: ((value: string[]) => void) | undefined;
82
42
  isTargetAmount?: boolean | undefined;
83
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
84
- items: import("../../../..").ItemOption[];
85
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
86
- label?: string | undefined;
87
- placeholder?: string | undefined;
88
- helperText?: string | undefined;
89
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
90
- textBefore?: string | undefined;
91
- textAfter?: string | undefined;
92
- variant?: "normal" | "tight" | undefined;
93
- listOverflow?: import("csstype").Property.Overflow | undefined;
94
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
95
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
96
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
97
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
98
- filter?: ((label: string, textValue: string) => boolean) | undefined;
99
- closeAfterSelect?: boolean | undefined;
100
- size?: string | undefined;
101
- view?: string | undefined;
102
- labelPlacement?: "inner" | "outer" | undefined;
103
- } & {
43
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
104
44
  readOnly?: true | undefined;
105
45
  disabled?: boolean | undefined;
106
46
  alwaysOpened?: false | undefined;
@@ -109,27 +49,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
109
49
  value?: string | undefined;
110
50
  onChange?: ((value: string) => void) | undefined;
111
51
  isTargetAmount?: false | undefined;
112
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
113
- items: import("../../../..").ItemOption[];
114
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
115
- label?: string | undefined;
116
- placeholder?: string | undefined;
117
- helperText?: string | undefined;
118
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
119
- textBefore?: string | undefined;
120
- textAfter?: string | undefined;
121
- variant?: "normal" | "tight" | undefined;
122
- listOverflow?: import("csstype").Property.Overflow | undefined;
123
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
124
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
125
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
126
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
127
- filter?: ((label: string, textValue: string) => boolean) | undefined;
128
- closeAfterSelect?: boolean | undefined;
129
- size?: string | undefined;
130
- view?: string | undefined;
131
- labelPlacement?: "inner" | "outer" | undefined;
132
- } & {
52
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
133
53
  readOnly?: true | undefined;
134
54
  disabled?: boolean | undefined;
135
55
  alwaysOpened?: false | undefined;
@@ -138,27 +58,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
138
58
  value?: string[] | undefined;
139
59
  onChange?: ((value: string[]) => void) | undefined;
140
60
  isTargetAmount?: boolean | undefined;
141
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
142
- items: import("../../../..").ItemOption[];
143
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
144
- label?: string | undefined;
145
- placeholder?: string | undefined;
146
- helperText?: string | undefined;
147
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
148
- textBefore?: string | undefined;
149
- textAfter?: string | undefined;
150
- variant?: "normal" | "tight" | undefined;
151
- listOverflow?: import("csstype").Property.Overflow | undefined;
152
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
153
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
154
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
155
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
156
- filter?: ((label: string, textValue: string) => boolean) | undefined;
157
- closeAfterSelect?: boolean | undefined;
158
- size?: string | undefined;
159
- view?: string | undefined;
160
- labelPlacement?: "inner" | "outer" | undefined;
161
- } & {
61
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
162
62
  readOnly?: false | undefined;
163
63
  disabled?: false | undefined;
164
64
  alwaysOpened?: true | undefined;
@@ -167,27 +67,7 @@ declare const Combobox: import("react").FunctionComponent<import("../../../../en
167
67
  value?: string | undefined;
168
68
  onChange?: ((value: string) => void) | undefined;
169
69
  isTargetAmount?: false | undefined;
170
- } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | ({
171
- items: import("../../../..").ItemOption[];
172
- placement?: ("left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | undefined;
173
- label?: string | undefined;
174
- placeholder?: string | undefined;
175
- helperText?: string | undefined;
176
- contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
177
- textBefore?: string | undefined;
178
- textAfter?: string | undefined;
179
- variant?: "normal" | "tight" | undefined;
180
- listOverflow?: import("csstype").Property.Overflow | undefined;
181
- listHeight?: import("csstype").Property.Height<string | number> | undefined;
182
- listWidth?: import("csstype").Property.Width<string | number> | undefined;
183
- portal?: import("react").MutableRefObject<HTMLElement | null> | undefined;
184
- renderItem?: ((item: import("../../../..").ItemOption) => import("react").ReactNode) | undefined;
185
- filter?: ((label: string, textValue: string) => boolean) | undefined;
186
- closeAfterSelect?: boolean | undefined;
187
- size?: string | undefined;
188
- view?: string | undefined;
189
- labelPlacement?: "inner" | "outer" | undefined;
190
- } & {
70
+ } & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Combobox/ComboboxNew/Combobox.types").BasicProps & {
191
71
  readOnly?: false | undefined;
192
72
  disabled?: false | undefined;
193
73
  alwaysOpened?: true | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":";AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Combobox/Combobox.ts"],"names":[],"mappings":";AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2IAA0B,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- .by826kf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
2
- .sw7vb9c{display:none;}
3
- .suojwhg{position:absolute;visibility:hidden;font-family:var(--plasma-attach-cell-title-font-family);font-size:var(--plasma-attach-cell-title-font-size);font-style:var(--plasma-attach-cell-title-font-style);font-weight:var(--plasma-attach-cell-title-font-weight);-webkit-letter-spacing:var(--plasma-attach-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-attach-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-attach-cell-title-letter-spacing);letter-spacing:var(--plasma-attach-cell-title-letter-spacing);line-height:var(--plasma-attach-cell-title-line-height);}
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var truncateFilename = function truncateFilename(_ref) {
6
- var filename = _ref.filename,
7
- startNameTruncationIndex = _ref.startNameTruncationIndex,
8
- _ref$separator = _ref.separator,
9
- separator = _ref$separator === void 0 ? '...' : _ref$separator,
10
- _ref$minNameLength = _ref.minNameLength,
11
- minNameLength = _ref$minNameLength === void 0 ? 5 : _ref$minNameLength;
12
- var strings = filename.split('.');
13
- var extension = strings.length > 1 ? strings[strings.length - 1] : null;
14
- var name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];
15
- if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {
16
- return filename;
17
- }
18
- var lastNameLetter = name[name.length - 1];
19
- var truncatedName = "".concat(name.substring(0, startNameTruncationIndex)).concat(separator).concat(lastNameLetter);
20
- return extension ? "".concat(truncatedName, ".").concat(extension) : truncatedName;
21
- };
22
-
23
- exports.truncateFilename = truncateFilename;
24
- //# sourceMappingURL=truncateFilename.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"truncateFilename.js","sources":["../../../../src/components/Attach/utils/truncateFilename.ts"],"sourcesContent":["export const truncateFilename = ({\n filename,\n startNameTruncationIndex,\n separator = '...',\n minNameLength = 5,\n}: {\n filename: string;\n startNameTruncationIndex: number;\n separator?: string;\n minNameLength?: number;\n}) => {\n const strings = filename.split('.');\n const extension = strings.length > 1 ? strings[strings.length - 1] : null;\n const name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];\n\n if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {\n return filename;\n }\n\n const lastNameLetter = name[name.length - 1];\n const truncatedName = `${name.substring(0, startNameTruncationIndex)}${separator}${lastNameLetter}`;\n\n return extension ? `${truncatedName}.${extension}` : truncatedName;\n};\n"],"names":["truncateFilename","_ref","filename","startNameTruncationIndex","_ref$separator","separator","_ref$minNameLength","minNameLength","strings","split","extension","length","name","slice","join","lastNameLetter","truncatedName","concat","substring"],"mappings":";;;;IAAaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAUvB;AAAA,EAAA,IATFC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,wBAAwB,GAAAF,IAAA,CAAxBE,wBAAwB;IAAAC,cAAA,GAAAH,IAAA,CACxBI,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,cAAA;IAAAE,kBAAA,GAAAL,IAAA,CACjBM,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,kBAAA,CAAA;AAOjB,EAAA,IAAME,OAAO,GAAGN,QAAQ,CAACO,KAAK,CAAC,GAAG,CAAC,CAAA;AACnC,EAAA,IAAMC,SAAS,GAAGF,OAAO,CAACG,MAAM,GAAG,CAAC,GAAGH,OAAO,CAACA,OAAO,CAACG,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,CAAA;EACzE,IAAMC,IAAI,GAAGJ,OAAO,CAACG,MAAM,GAAG,CAAC,GAAGH,OAAO,CAACK,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,GAAGN,OAAO,CAAC,CAAC,CAAC,CAAA;AAE7E,EAAA,IAAII,IAAI,CAACD,MAAM,IAAIJ,aAAa,IAAIJ,wBAAwB,IAAIS,IAAI,CAACD,MAAM,GAAG,CAAC,EAAE;AAC7E,IAAA,OAAOT,QAAQ,CAAA;AACnB,GAAA;EAEA,IAAMa,cAAc,GAAGH,IAAI,CAACA,IAAI,CAACD,MAAM,GAAG,CAAC,CAAC,CAAA;EAC5C,IAAMK,aAAa,MAAAC,MAAA,CAAML,IAAI,CAACM,SAAS,CAAC,CAAC,EAAEf,wBAAwB,CAAC,CAAA,CAAAc,MAAA,CAAGZ,SAAS,EAAAY,MAAA,CAAGF,cAAc,CAAE,CAAA;EAEnG,OAAOL,SAAS,GAAAO,EAAAA,CAAAA,MAAA,CAAMD,aAAa,OAAAC,MAAA,CAAIP,SAAS,CAAA,GAAKM,aAAa,CAAA;AACtE;;;;"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.truncateFilename = void 0;
7
- var truncateFilename = exports.truncateFilename = function truncateFilename(_ref) {
8
- var filename = _ref.filename,
9
- startNameTruncationIndex = _ref.startNameTruncationIndex,
10
- _ref$separator = _ref.separator,
11
- separator = _ref$separator === void 0 ? '...' : _ref$separator,
12
- _ref$minNameLength = _ref.minNameLength,
13
- minNameLength = _ref$minNameLength === void 0 ? 5 : _ref$minNameLength;
14
- var strings = filename.split('.');
15
- var extension = strings.length > 1 ? strings[strings.length - 1] : null;
16
- var name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];
17
- if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {
18
- return filename;
19
- }
20
- var lastNameLetter = name[name.length - 1];
21
- var truncatedName = "".concat(name.substring(0, startNameTruncationIndex)).concat(separator).concat(lastNameLetter);
22
- return extension ? "".concat(truncatedName, ".").concat(extension) : truncatedName;
23
- };
@@ -1,17 +0,0 @@
1
- export var truncateFilename = function truncateFilename(_ref) {
2
- var filename = _ref.filename,
3
- startNameTruncationIndex = _ref.startNameTruncationIndex,
4
- _ref$separator = _ref.separator,
5
- separator = _ref$separator === void 0 ? '...' : _ref$separator,
6
- _ref$minNameLength = _ref.minNameLength,
7
- minNameLength = _ref$minNameLength === void 0 ? 5 : _ref$minNameLength;
8
- var strings = filename.split('.');
9
- var extension = strings.length > 1 ? strings[strings.length - 1] : null;
10
- var name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];
11
- if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {
12
- return filename;
13
- }
14
- var lastNameLetter = name[name.length - 1];
15
- var truncatedName = "".concat(name.substring(0, startNameTruncationIndex)).concat(separator).concat(lastNameLetter);
16
- return extension ? "".concat(truncatedName, ".").concat(extension) : truncatedName;
17
- };
@@ -1,3 +0,0 @@
1
- .by826kf{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
2
- .sw7vb9c{display:none;}
3
- .suojwhg{position:absolute;visibility:hidden;font-family:var(--plasma-attach-cell-title-font-family);font-size:var(--plasma-attach-cell-title-font-size);font-style:var(--plasma-attach-cell-title-font-style);font-weight:var(--plasma-attach-cell-title-font-weight);-webkit-letter-spacing:var(--plasma-attach-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-attach-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-attach-cell-title-letter-spacing);letter-spacing:var(--plasma-attach-cell-title-letter-spacing);line-height:var(--plasma-attach-cell-title-line-height);}
@@ -1,20 +0,0 @@
1
- var truncateFilename = function truncateFilename(_ref) {
2
- var filename = _ref.filename,
3
- startNameTruncationIndex = _ref.startNameTruncationIndex,
4
- _ref$separator = _ref.separator,
5
- separator = _ref$separator === void 0 ? '...' : _ref$separator,
6
- _ref$minNameLength = _ref.minNameLength,
7
- minNameLength = _ref$minNameLength === void 0 ? 5 : _ref$minNameLength;
8
- var strings = filename.split('.');
9
- var extension = strings.length > 1 ? strings[strings.length - 1] : null;
10
- var name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];
11
- if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {
12
- return filename;
13
- }
14
- var lastNameLetter = name[name.length - 1];
15
- var truncatedName = "".concat(name.substring(0, startNameTruncationIndex)).concat(separator).concat(lastNameLetter);
16
- return extension ? "".concat(truncatedName, ".").concat(extension) : truncatedName;
17
- };
18
-
19
- export { truncateFilename };
20
- //# sourceMappingURL=truncateFilename.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"truncateFilename.js","sources":["../../../../src/components/Attach/utils/truncateFilename.ts"],"sourcesContent":["export const truncateFilename = ({\n filename,\n startNameTruncationIndex,\n separator = '...',\n minNameLength = 5,\n}: {\n filename: string;\n startNameTruncationIndex: number;\n separator?: string;\n minNameLength?: number;\n}) => {\n const strings = filename.split('.');\n const extension = strings.length > 1 ? strings[strings.length - 1] : null;\n const name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];\n\n if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {\n return filename;\n }\n\n const lastNameLetter = name[name.length - 1];\n const truncatedName = `${name.substring(0, startNameTruncationIndex)}${separator}${lastNameLetter}`;\n\n return extension ? `${truncatedName}.${extension}` : truncatedName;\n};\n"],"names":["truncateFilename","_ref","filename","startNameTruncationIndex","_ref$separator","separator","_ref$minNameLength","minNameLength","strings","split","extension","length","name","slice","join","lastNameLetter","truncatedName","concat","substring"],"mappings":"IAAaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAUvB;AAAA,EAAA,IATFC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,wBAAwB,GAAAF,IAAA,CAAxBE,wBAAwB;IAAAC,cAAA,GAAAH,IAAA,CACxBI,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,cAAA;IAAAE,kBAAA,GAAAL,IAAA,CACjBM,aAAa;AAAbA,IAAAA,aAAa,GAAAD,kBAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,kBAAA,CAAA;AAOjB,EAAA,IAAME,OAAO,GAAGN,QAAQ,CAACO,KAAK,CAAC,GAAG,CAAC,CAAA;AACnC,EAAA,IAAMC,SAAS,GAAGF,OAAO,CAACG,MAAM,GAAG,CAAC,GAAGH,OAAO,CAACA,OAAO,CAACG,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,CAAA;EACzE,IAAMC,IAAI,GAAGJ,OAAO,CAACG,MAAM,GAAG,CAAC,GAAGH,OAAO,CAACK,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,GAAGN,OAAO,CAAC,CAAC,CAAC,CAAA;AAE7E,EAAA,IAAII,IAAI,CAACD,MAAM,IAAIJ,aAAa,IAAIJ,wBAAwB,IAAIS,IAAI,CAACD,MAAM,GAAG,CAAC,EAAE;AAC7E,IAAA,OAAOT,QAAQ,CAAA;AACnB,GAAA;EAEA,IAAMa,cAAc,GAAGH,IAAI,CAACA,IAAI,CAACD,MAAM,GAAG,CAAC,CAAC,CAAA;EAC5C,IAAMK,aAAa,MAAAC,MAAA,CAAML,IAAI,CAACM,SAAS,CAAC,CAAC,EAAEf,wBAAwB,CAAC,CAAA,CAAAc,MAAA,CAAGZ,SAAS,EAAAY,MAAA,CAAGF,cAAc,CAAE,CAAA;EAEnG,OAAOL,SAAS,GAAAO,EAAAA,CAAAA,MAAA,CAAMD,aAAa,OAAAC,MAAA,CAAIP,SAAS,CAAA,GAAKM,aAAa,CAAA;AACtE;;;;"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.truncateFilename = void 0;
7
- var truncateFilename = exports.truncateFilename = function truncateFilename(_ref) {
8
- var filename = _ref.filename,
9
- startNameTruncationIndex = _ref.startNameTruncationIndex,
10
- _ref$separator = _ref.separator,
11
- separator = _ref$separator === void 0 ? '...' : _ref$separator,
12
- _ref$minNameLength = _ref.minNameLength,
13
- minNameLength = _ref$minNameLength === void 0 ? 5 : _ref$minNameLength;
14
- var strings = filename.split('.');
15
- var extension = strings.length > 1 ? strings[strings.length - 1] : null;
16
- var name = strings.length > 1 ? strings.slice(0, -1).join('.') : strings[0];
17
- if (name.length <= minNameLength || startNameTruncationIndex >= name.length - 1) {
18
- return filename;
19
- }
20
- var lastNameLetter = name[name.length - 1];
21
- var truncatedName = "".concat(name.substring(0, startNameTruncationIndex)).concat(separator).concat(lastNameLetter);
22
- return extension ? "".concat(truncatedName, ".").concat(extension) : truncatedName;
23
- };