@grapadigital/shared-app-modules 0.0.182 → 0.0.184
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.
- package/dist/assets/switch.css +1 -1
- package/dist/chuncks/badge.Cur4Mrd7.js +416 -0
- package/dist/chuncks/{format.util.vV9o9P7h.js → format.util.B1F-QlvS.js} +1 -1
- package/dist/chuncks/{popover.4p4HlZwe.js → popover.C3VFqVxV.js} +1 -1
- package/dist/chuncks/{switch.BF6I8Lqo.js → switch.D4GUsewk.js} +127 -127
- package/dist/chuncks/youtube-icon.component.Dasmq5T5.js +4435 -0
- package/dist/components.d.ts +38 -0
- package/dist/components.js +366 -212
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/hooks.d.ts +1 -0
- package/dist/pages.js +1 -1
- package/dist/providers.d.ts +1 -0
- package/dist/shadcn.js +151 -187
- package/dist/utils.js +4 -4
- package/package.json +11 -9
- package/dist/chuncks/tooltip.BR6kaw4f.js +0 -378
- package/dist/chuncks/youtube-icon.component.CaEGEuTv.js +0 -2091
package/dist/components.d.ts
CHANGED
|
@@ -399,6 +399,12 @@ declare interface FormalizationInterface {
|
|
|
399
399
|
totalInstallments: number;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Extrai as menções no formato { userId, username } esperado pelo campo
|
|
404
|
+
* `mentioneds` das APIs (api-sales, api-campaigns, api-invoices, api-payments).
|
|
405
|
+
*/
|
|
406
|
+
export declare function getMentionedUsers(text: string): MentionedUser[];
|
|
407
|
+
|
|
402
408
|
export declare function HoverContent({ content, align, asChild, className, openDelay, closeDelay, children, disabled, ...props }: HoverContentProps): JSX.Element;
|
|
403
409
|
|
|
404
410
|
declare interface HoverContentProps extends HoverCardProps {
|
|
@@ -542,6 +548,31 @@ declare interface LostInterface {
|
|
|
542
548
|
details?: string;
|
|
543
549
|
}
|
|
544
550
|
|
|
551
|
+
export declare interface MentionedUser {
|
|
552
|
+
userId: string;
|
|
553
|
+
username: string;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export declare function MentionInput({ value, onChange, onBlur, organizationId, placeholder, disabled, singleLine, }: MentionInputProps): JSX.Element;
|
|
557
|
+
|
|
558
|
+
declare interface MentionInputProps {
|
|
559
|
+
value: string;
|
|
560
|
+
onChange: (value: string) => void;
|
|
561
|
+
onBlur?: () => void;
|
|
562
|
+
organizationId: string;
|
|
563
|
+
placeholder?: string;
|
|
564
|
+
disabled?: boolean;
|
|
565
|
+
/** @default false — renderiza como textarea multi-linha */
|
|
566
|
+
singleLine?: boolean;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
export declare function MentionText({ text, className }: MentionTextProps): JSX.Element;
|
|
570
|
+
|
|
571
|
+
declare interface MentionTextProps {
|
|
572
|
+
text: string;
|
|
573
|
+
className?: string;
|
|
574
|
+
}
|
|
575
|
+
|
|
545
576
|
declare interface NegotiationInterface {
|
|
546
577
|
calculatorType: CalculatorType;
|
|
547
578
|
childPermit?: boolean;
|
|
@@ -618,6 +649,13 @@ declare interface Paid {
|
|
|
618
649
|
date: string;
|
|
619
650
|
}
|
|
620
651
|
|
|
652
|
+
declare interface ParsedMention {
|
|
653
|
+
id: string;
|
|
654
|
+
display: string;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
export declare function parseMentions(text: string): ParsedMention[];
|
|
658
|
+
|
|
621
659
|
declare interface Participant {
|
|
622
660
|
role: ParticipantRole;
|
|
623
661
|
email: string;
|