@codecademy/gamut 68.0.1-alpha.4aeb6d.0 → 68.0.1-alpha.588625.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Anchor/index.d.ts +33 -6
- package/dist/Badge/index.d.ts +35 -20
- package/dist/Box/props.d.ts +61 -150
- package/dist/Button/shared/styles.d.ts +59 -136
- package/dist/Card/elements.d.ts +183 -450
- package/dist/Form/elements/Form.d.ts +59 -136
- package/dist/GridForm/GridFormSections/GridFormSectionBreak.d.ts +61 -150
- package/dist/InternalFloatingCard/InternalFloatingCard.d.ts +33 -6
- package/dist/Layout/Column.d.ts +33 -6
- package/dist/List/elements.d.ts +94 -156
- package/dist/Menu/elements.d.ts +61 -150
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +61 -138
- package/dist/Pagination/EllipsisButton.d.ts +5 -5
- package/dist/Pagination/EllipsisButton.js +2 -2
- package/dist/Pagination/index.js +4 -4
- package/dist/Pagination/utils.d.ts +59 -136
- package/dist/Pagination/utils.js +1 -1
- package/dist/Tabs/props.d.ts +33 -6
- package/dist/Tag/types.d.ts +33 -6
- package/dist/Toggle/elements.d.ts +2 -14
- package/dist/Typography/Text.d.ts +35 -20
- package/package.json +7 -7
|
@@ -19,11 +19,19 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
19
19
|
dir?: string | undefined;
|
|
20
20
|
className?: string | undefined;
|
|
21
21
|
height?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
22
|
-
readonly property:
|
|
22
|
+
readonly property: {
|
|
23
|
+
readonly physical: "height";
|
|
24
|
+
readonly logical: "blockSize";
|
|
25
|
+
};
|
|
26
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
23
27
|
readonly transform: (value: string | number) => string | 0;
|
|
24
28
|
}>;
|
|
25
29
|
width?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
26
|
-
readonly property:
|
|
30
|
+
readonly property: {
|
|
31
|
+
readonly physical: "width";
|
|
32
|
+
readonly logical: "inlineSize";
|
|
33
|
+
};
|
|
34
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
27
35
|
readonly transform: (value: string | number) => string | 0;
|
|
28
36
|
}>;
|
|
29
37
|
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
@@ -292,6 +300,9 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
292
300
|
containerType?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
293
301
|
readonly property: "containerType";
|
|
294
302
|
}>;
|
|
303
|
+
direction?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
304
|
+
readonly property: "direction";
|
|
305
|
+
}>;
|
|
295
306
|
display?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
296
307
|
readonly property: "display";
|
|
297
308
|
}>;
|
|
@@ -324,19 +335,35 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
324
335
|
readonly transform: (value: string | number) => string | 0;
|
|
325
336
|
}>;
|
|
326
337
|
maxHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
327
|
-
readonly property:
|
|
338
|
+
readonly property: {
|
|
339
|
+
readonly physical: "maxHeight";
|
|
340
|
+
readonly logical: "maxBlockSize";
|
|
341
|
+
};
|
|
342
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
328
343
|
readonly transform: (value: string | number) => string | 0;
|
|
329
344
|
}>;
|
|
330
345
|
maxWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
331
|
-
readonly property:
|
|
346
|
+
readonly property: {
|
|
347
|
+
readonly physical: "maxWidth";
|
|
348
|
+
readonly logical: "maxInlineSize";
|
|
349
|
+
};
|
|
350
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
332
351
|
readonly transform: (value: string | number) => string | 0;
|
|
333
352
|
}>;
|
|
334
353
|
minHeight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
335
|
-
readonly property:
|
|
354
|
+
readonly property: {
|
|
355
|
+
readonly physical: "minHeight";
|
|
356
|
+
readonly logical: "minBlockSize";
|
|
357
|
+
};
|
|
358
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
336
359
|
readonly transform: (value: string | number) => string | 0;
|
|
337
360
|
}>;
|
|
338
361
|
minWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
339
|
-
readonly property:
|
|
362
|
+
readonly property: {
|
|
363
|
+
readonly physical: "minWidth";
|
|
364
|
+
readonly logical: "minInlineSize";
|
|
365
|
+
};
|
|
366
|
+
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
340
367
|
readonly transform: (value: string | number) => string | 0;
|
|
341
368
|
}>;
|
|
342
369
|
opacity?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
@@ -369,19 +396,11 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
369
396
|
readonly property: "zIndex";
|
|
370
397
|
}>;
|
|
371
398
|
borderBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
372
|
-
readonly property:
|
|
373
|
-
readonly physical: "borderBottom";
|
|
374
|
-
readonly logical: "borderBlockEnd";
|
|
375
|
-
};
|
|
376
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
399
|
+
readonly property: "borderBottom";
|
|
377
400
|
readonly scale: "borders";
|
|
378
401
|
}>;
|
|
379
402
|
borderLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
380
|
-
readonly property:
|
|
381
|
-
readonly physical: "borderLeft";
|
|
382
|
-
readonly logical: "borderInlineStart";
|
|
383
|
-
};
|
|
384
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
403
|
+
readonly property: "borderLeft";
|
|
385
404
|
readonly scale: "borders";
|
|
386
405
|
}>;
|
|
387
406
|
borderRadius?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
@@ -389,22 +408,14 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
389
408
|
readonly scale: "borderRadii";
|
|
390
409
|
}>;
|
|
391
410
|
borderRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
392
|
-
readonly property:
|
|
393
|
-
readonly physical: "borderRight";
|
|
394
|
-
readonly logical: "borderInlineEnd";
|
|
395
|
-
};
|
|
396
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
411
|
+
readonly property: "borderRight";
|
|
397
412
|
readonly scale: "borders";
|
|
398
413
|
}>;
|
|
399
414
|
borderStyle?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
400
415
|
readonly property: "borderStyle";
|
|
401
416
|
}>;
|
|
402
417
|
borderTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
403
|
-
readonly property:
|
|
404
|
-
readonly physical: "borderTop";
|
|
405
|
-
readonly logical: "borderBlockStart";
|
|
406
|
-
};
|
|
407
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
418
|
+
readonly property: "borderTop";
|
|
408
419
|
readonly scale: "borders";
|
|
409
420
|
}>;
|
|
410
421
|
borderWidth?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
@@ -538,177 +549,89 @@ export declare const AnimatedFadeButton: (props: {
|
|
|
538
549
|
}>;
|
|
539
550
|
borderX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
540
551
|
readonly property: "border";
|
|
541
|
-
readonly properties:
|
|
542
|
-
readonly physical: readonly ["borderLeft", "borderRight"];
|
|
543
|
-
readonly logical: readonly ["borderInlineStart", "borderInlineEnd"];
|
|
544
|
-
};
|
|
545
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
552
|
+
readonly properties: readonly ["borderLeft", "borderRight"];
|
|
546
553
|
readonly scale: "borders";
|
|
547
554
|
}>;
|
|
548
555
|
borderY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
549
556
|
readonly property: "border";
|
|
550
|
-
readonly properties:
|
|
551
|
-
readonly physical: readonly ["borderTop", "borderBottom"];
|
|
552
|
-
readonly logical: readonly ["borderBlockStart", "borderBlockEnd"];
|
|
553
|
-
};
|
|
554
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
557
|
+
readonly properties: readonly ["borderTop", "borderBottom"];
|
|
555
558
|
readonly scale: "borders";
|
|
556
559
|
}>;
|
|
557
560
|
borderWidthX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
558
561
|
readonly property: "borderWidth";
|
|
559
|
-
readonly properties:
|
|
560
|
-
readonly physical: readonly ["borderLeftWidth", "borderRightWidth"];
|
|
561
|
-
readonly logical: readonly ["borderInlineStartWidth", "borderInlineEndWidth"];
|
|
562
|
-
};
|
|
563
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
562
|
+
readonly properties: readonly ["borderLeftWidth", "borderRightWidth"];
|
|
564
563
|
}>;
|
|
565
564
|
borderWidthY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
566
565
|
readonly property: "borderWidth";
|
|
567
|
-
readonly properties:
|
|
568
|
-
readonly physical: readonly ["borderTopWidth", "borderBottomWidth"];
|
|
569
|
-
readonly logical: readonly ["borderBlockStartWidth", "borderBlockEndWidth"];
|
|
570
|
-
};
|
|
571
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
566
|
+
readonly properties: readonly ["borderTopWidth", "borderBottomWidth"];
|
|
572
567
|
}>;
|
|
573
568
|
borderWidthLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
574
|
-
readonly property:
|
|
575
|
-
readonly physical: "borderLeftWidth";
|
|
576
|
-
readonly logical: "borderInlineStartWidth";
|
|
577
|
-
};
|
|
578
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
569
|
+
readonly property: "borderLeftWidth";
|
|
579
570
|
}>;
|
|
580
571
|
borderWidthRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
581
|
-
readonly property:
|
|
582
|
-
readonly physical: "borderRightWidth";
|
|
583
|
-
readonly logical: "borderInlineEndWidth";
|
|
584
|
-
};
|
|
585
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
572
|
+
readonly property: "borderRightWidth";
|
|
586
573
|
}>;
|
|
587
574
|
borderWidthTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
588
|
-
readonly property:
|
|
589
|
-
readonly physical: "borderTopWidth";
|
|
590
|
-
readonly logical: "borderBlockStartWidth";
|
|
591
|
-
};
|
|
592
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
575
|
+
readonly property: "borderTopWidth";
|
|
593
576
|
}>;
|
|
594
577
|
borderWidthBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
595
|
-
readonly property:
|
|
596
|
-
readonly physical: "borderBottomWidth";
|
|
597
|
-
readonly logical: "borderBlockEndWidth";
|
|
598
|
-
};
|
|
599
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
578
|
+
readonly property: "borderBottomWidth";
|
|
600
579
|
}>;
|
|
601
580
|
borderRadiusLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
602
581
|
readonly property: "borderRadius";
|
|
603
|
-
readonly properties:
|
|
604
|
-
readonly physical: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
|
|
605
|
-
readonly logical: readonly ["borderStartStartRadius", "borderEndStartRadius"];
|
|
606
|
-
};
|
|
607
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
582
|
+
readonly properties: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
|
|
608
583
|
readonly scale: "borderRadii";
|
|
609
584
|
}>;
|
|
610
585
|
borderRadiusTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
611
586
|
readonly property: "borderRadius";
|
|
612
|
-
readonly properties:
|
|
613
|
-
readonly physical: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
|
|
614
|
-
readonly logical: readonly ["borderStartStartRadius", "borderStartEndRadius"];
|
|
615
|
-
};
|
|
616
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
587
|
+
readonly properties: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
|
|
617
588
|
readonly scale: "borderRadii";
|
|
618
589
|
}>;
|
|
619
590
|
borderRadiusBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
620
591
|
readonly property: "borderRadius";
|
|
621
|
-
readonly properties:
|
|
622
|
-
readonly physical: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
623
|
-
readonly logical: readonly ["borderEndStartRadius", "borderEndEndRadius"];
|
|
624
|
-
};
|
|
625
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
592
|
+
readonly properties: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
626
593
|
readonly scale: "borderRadii";
|
|
627
594
|
}>;
|
|
628
595
|
borderRadiusRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
629
596
|
readonly property: "borderRadius";
|
|
630
|
-
readonly properties:
|
|
631
|
-
readonly physical: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
|
|
632
|
-
readonly logical: readonly ["borderStartEndRadius", "borderEndEndRadius"];
|
|
633
|
-
};
|
|
634
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
597
|
+
readonly properties: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
|
|
635
598
|
readonly scale: "borderRadii";
|
|
636
599
|
}>;
|
|
637
600
|
borderRadiusTopLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
638
|
-
readonly property:
|
|
639
|
-
readonly physical: "borderTopLeftRadius";
|
|
640
|
-
readonly logical: "borderStartStartRadius";
|
|
641
|
-
};
|
|
642
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
601
|
+
readonly property: "borderTopLeftRadius";
|
|
643
602
|
readonly scale: "borderRadii";
|
|
644
603
|
}>;
|
|
645
604
|
borderRadiusTopRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
646
|
-
readonly property:
|
|
647
|
-
readonly physical: "borderTopRightRadius";
|
|
648
|
-
readonly logical: "borderStartEndRadius";
|
|
649
|
-
};
|
|
650
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
605
|
+
readonly property: "borderTopRightRadius";
|
|
651
606
|
readonly scale: "borderRadii";
|
|
652
607
|
}>;
|
|
653
608
|
borderRadiusBottomRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
654
|
-
readonly property:
|
|
655
|
-
readonly physical: "borderBottomRightRadius";
|
|
656
|
-
readonly logical: "borderEndEndRadius";
|
|
657
|
-
};
|
|
658
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
609
|
+
readonly property: "borderBottomRightRadius";
|
|
659
610
|
readonly scale: "borderRadii";
|
|
660
611
|
}>;
|
|
661
612
|
borderRadiusBottomLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
662
|
-
readonly property:
|
|
663
|
-
readonly physical: "borderBottomLeftRadius";
|
|
664
|
-
readonly logical: "borderEndStartRadius";
|
|
665
|
-
};
|
|
666
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
613
|
+
readonly property: "borderBottomLeftRadius";
|
|
667
614
|
readonly scale: "borderRadii";
|
|
668
615
|
}>;
|
|
669
616
|
borderStyleX?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
670
617
|
readonly property: "borderStyle";
|
|
671
|
-
readonly properties:
|
|
672
|
-
readonly physical: readonly ["borderLeftStyle", "borderRightStyle"];
|
|
673
|
-
readonly logical: readonly ["borderInlineStartStyle", "borderInlineEndStyle"];
|
|
674
|
-
};
|
|
675
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
618
|
+
readonly properties: readonly ["borderLeftStyle", "borderRightStyle"];
|
|
676
619
|
}>;
|
|
677
620
|
borderStyleY?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
678
621
|
readonly property: "borderStyle";
|
|
679
|
-
readonly properties:
|
|
680
|
-
readonly physical: readonly ["borderTopStyle", "borderBottomStyle"];
|
|
681
|
-
readonly logical: readonly ["borderBlockStartStyle", "borderBlockEndStyle"];
|
|
682
|
-
};
|
|
683
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
622
|
+
readonly properties: readonly ["borderTopStyle", "borderBottomStyle"];
|
|
684
623
|
}>;
|
|
685
624
|
borderStyleLeft?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
686
|
-
readonly property:
|
|
687
|
-
readonly physical: "borderLeftStyle";
|
|
688
|
-
readonly logical: "borderInlineStartStyle";
|
|
689
|
-
};
|
|
690
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
625
|
+
readonly property: "borderLeftStyle";
|
|
691
626
|
}>;
|
|
692
627
|
borderStyleRight?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
693
|
-
readonly property:
|
|
694
|
-
readonly physical: "borderRightStyle";
|
|
695
|
-
readonly logical: "borderInlineEndStyle";
|
|
696
|
-
};
|
|
697
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
628
|
+
readonly property: "borderRightStyle";
|
|
698
629
|
}>;
|
|
699
630
|
borderStyleTop?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
700
|
-
readonly property:
|
|
701
|
-
readonly physical: "borderTopStyle";
|
|
702
|
-
readonly logical: "borderBlockStartStyle";
|
|
703
|
-
};
|
|
704
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
631
|
+
readonly property: "borderTopStyle";
|
|
705
632
|
}>;
|
|
706
633
|
borderStyleBottom?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
707
|
-
readonly property:
|
|
708
|
-
readonly physical: "borderBottomStyle";
|
|
709
|
-
readonly logical: "borderBlockEndStyle";
|
|
710
|
-
};
|
|
711
|
-
readonly resolveProperty: (useLogicalProperties: boolean) => import("@codecademy/variance/dist/types/properties").PropertyMode;
|
|
634
|
+
readonly property: "borderBottomStyle";
|
|
712
635
|
}>;
|
|
713
636
|
dimensions?: import("@codecademy/variance/dist/types/config").Scale<{
|
|
714
637
|
readonly property: "width";
|
|
@@ -742,7 +665,7 @@ export declare const AnimatedSlideButton: (props: (Omit<Omit<{
|
|
|
742
665
|
href?: string | undefined;
|
|
743
666
|
} & {
|
|
744
667
|
'aria-label': string;
|
|
745
|
-
|
|
668
|
+
buttonDirection: "back" | "forward";
|
|
746
669
|
}, "ref"> | Omit<Omit<{
|
|
747
670
|
theme?: import("@emotion/react").Theme | undefined;
|
|
748
671
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -758,5 +681,5 @@ export declare const AnimatedSlideButton: (props: (Omit<Omit<{
|
|
|
758
681
|
href?: string | undefined;
|
|
759
682
|
} & {
|
|
760
683
|
'aria-label': string;
|
|
761
|
-
|
|
684
|
+
buttonDirection: "back" | "forward";
|
|
762
685
|
}, "ref">) & import("react").RefAttributes<import("..").ButtonBaseElements>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { ButtonBaseElements } from '../ButtonBase/ButtonBase';
|
|
|
3
3
|
import { PaginationButtonProps } from './PaginationButton';
|
|
4
4
|
export type EllipsisButtonProps = PaginationButtonProps & {
|
|
5
5
|
'aria-label': string;
|
|
6
|
-
|
|
6
|
+
buttonDirection: 'back' | 'forward';
|
|
7
7
|
};
|
|
8
8
|
export declare const BaseEllipsisButton: import("react").ForwardRefExoticComponent<(Omit<Omit<{
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -20,7 +20,7 @@ export declare const BaseEllipsisButton: import("react").ForwardRefExoticCompone
|
|
|
20
20
|
href?: string | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
'aria-label': string;
|
|
23
|
-
|
|
23
|
+
buttonDirection: 'back' | 'forward';
|
|
24
24
|
}, "ref"> | Omit<Omit<{
|
|
25
25
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
26
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -36,7 +36,7 @@ export declare const BaseEllipsisButton: import("react").ForwardRefExoticCompone
|
|
|
36
36
|
href?: string | undefined;
|
|
37
37
|
} & {
|
|
38
38
|
'aria-label': string;
|
|
39
|
-
|
|
39
|
+
buttonDirection: 'back' | 'forward';
|
|
40
40
|
}, "ref">) & import("react").RefAttributes<ButtonBaseElements>>;
|
|
41
41
|
export declare const EllipsisButton: (props: (Omit<Omit<{
|
|
42
42
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -53,7 +53,7 @@ export declare const EllipsisButton: (props: (Omit<Omit<{
|
|
|
53
53
|
href?: string | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
'aria-label': string;
|
|
56
|
-
|
|
56
|
+
buttonDirection: 'back' | 'forward';
|
|
57
57
|
}, "ref"> | Omit<Omit<{
|
|
58
58
|
theme?: import("@emotion/react").Theme | undefined;
|
|
59
59
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -69,5 +69,5 @@ export declare const EllipsisButton: (props: (Omit<Omit<{
|
|
|
69
69
|
href?: string | undefined;
|
|
70
70
|
} & {
|
|
71
71
|
'aria-label': string;
|
|
72
|
-
|
|
72
|
+
buttonDirection: 'back' | 'forward';
|
|
73
73
|
}, "ref">) & import("react").RefAttributes<ButtonBaseElements>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,14 +8,14 @@ const ellipsisButtonContents = {
|
|
|
8
8
|
forward: '»'
|
|
9
9
|
};
|
|
10
10
|
export const BaseEllipsisButton = /*#__PURE__*/forwardRef(({
|
|
11
|
-
|
|
11
|
+
buttonDirection,
|
|
12
12
|
showButton,
|
|
13
13
|
...props
|
|
14
14
|
}, ref) => {
|
|
15
15
|
const [contents, setContents] = useState(ellipsisButtonContents.ellipsis);
|
|
16
16
|
return /*#__PURE__*/_jsx(PaginationButton, {
|
|
17
17
|
ellipsis: true,
|
|
18
|
-
onMouseEnter: () => setContents(ellipsisButtonContents[
|
|
18
|
+
onMouseEnter: () => setContents(ellipsisButtonContents[buttonDirection]),
|
|
19
19
|
onMouseLeave: () => setContents(ellipsisButtonContents.ellipsis),
|
|
20
20
|
...props,
|
|
21
21
|
ref: ref,
|
package/dist/Pagination/index.js
CHANGED
|
@@ -80,8 +80,8 @@ export const Pagination = ({
|
|
|
80
80
|
}), showSkipToButtons && /*#__PURE__*/_jsxs(_Fragment, {
|
|
81
81
|
children: [/*#__PURE__*/_jsx(AnimatedSlideButton, {
|
|
82
82
|
"aria-label": "Jump back to page 1",
|
|
83
|
+
buttonDirection: "back",
|
|
83
84
|
buttonType: variant,
|
|
84
|
-
direction: "back",
|
|
85
85
|
display: hideOnMobile,
|
|
86
86
|
href: navigation,
|
|
87
87
|
showButton: shownPageArray[0] === 1 ? 'hidden' : 'shown',
|
|
@@ -89,8 +89,8 @@ export const Pagination = ({
|
|
|
89
89
|
children: "1"
|
|
90
90
|
}), /*#__PURE__*/_jsx(EllipsisButton, {
|
|
91
91
|
"aria-label": `Jump back to page ${backPageNumber}`,
|
|
92
|
+
buttonDirection: "back",
|
|
92
93
|
buttonType: variant,
|
|
93
|
-
direction: "back",
|
|
94
94
|
display: hideOnMobile,
|
|
95
95
|
href: navigation,
|
|
96
96
|
showButton: shownPageArray[0] === 1 ? 'hidden' : 'shown',
|
|
@@ -107,8 +107,8 @@ export const Pagination = ({
|
|
|
107
107
|
}, page)), showSkipToButtons && /*#__PURE__*/_jsxs(_Fragment, {
|
|
108
108
|
children: [/*#__PURE__*/_jsx(EllipsisButton, {
|
|
109
109
|
"aria-label": `Jump forward to page ${forwardPageNumber}`,
|
|
110
|
+
buttonDirection: "forward",
|
|
110
111
|
buttonType: variant,
|
|
111
|
-
direction: "forward",
|
|
112
112
|
display: hideOnMobile,
|
|
113
113
|
href: navigation,
|
|
114
114
|
showButton: shownPageArray[chapterSize - 1] === totalPages ? 'hidden' : 'shown',
|
|
@@ -117,8 +117,8 @@ export const Pagination = ({
|
|
|
117
117
|
}
|
|
118
118
|
}), /*#__PURE__*/_jsx(AnimatedSlideButton, {
|
|
119
119
|
"aria-label": `Jump forward to last page, page ${totalPages}`,
|
|
120
|
+
buttonDirection: "forward",
|
|
120
121
|
buttonType: variant,
|
|
121
|
-
direction: "forward",
|
|
122
122
|
display: hideOnMobile,
|
|
123
123
|
href: navigation,
|
|
124
124
|
showButton: shownPageArray[chapterSize - 1] === totalPages ? 'hidden' : 'shown',
|