@chotot/clad-ui 2.2.0 → 2.3.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.
Files changed (44) hide show
  1. package/dist/components/Chip/Chip.d.ts +1 -1
  2. package/dist/components/Chip/Chip.d.ts.map +1 -1
  3. package/dist/components/Chip/Chip.js +2 -2
  4. package/dist/components/Chip/Chip.stories.d.ts +11 -0
  5. package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
  6. package/dist/components/Chip/Chip.stories.js +81 -24
  7. package/dist/components/Chip/Chip.styles.d.ts.map +1 -1
  8. package/dist/components/Chip/Chip.styles.js +56 -50
  9. package/dist/components/Input/Input.styles.d.ts.map +1 -1
  10. package/dist/components/Input/Input.styles.js +14 -0
  11. package/dist/components/RowItem/RowItem.styles.d.ts.map +1 -1
  12. package/dist/components/RowItem/RowItem.styles.js +8 -0
  13. package/dist/components/Snack/Snack.d.ts +9 -0
  14. package/dist/components/Snack/Snack.d.ts.map +1 -1
  15. package/dist/components/Snack/Snack.js +7 -4
  16. package/dist/components/Snack/Snack.stories.d.ts +22 -0
  17. package/dist/components/Snack/Snack.stories.d.ts.map +1 -1
  18. package/dist/components/Snack/Snack.stories.js +137 -0
  19. package/dist/components/Snack/Snack.styles.d.ts +7 -1
  20. package/dist/components/Snack/Snack.styles.d.ts.map +1 -1
  21. package/dist/components/Snack/Snack.styles.js +44 -3
  22. package/dist/components/TextArea/TextArea.styles.d.ts.map +1 -1
  23. package/dist/components/TextArea/TextArea.styles.js +5 -0
  24. package/dist/icons/ChevronDown.d.ts.map +1 -1
  25. package/dist/icons/ChevronDown.js +1 -3
  26. package/dist/icons/ChevronLeft.d.ts.map +1 -1
  27. package/dist/icons/ChevronLeft.js +1 -3
  28. package/dist/icons/ChevronRight.d.ts.map +1 -1
  29. package/dist/icons/ChevronRight.js +1 -3
  30. package/dist/icons/ChevronUp.d.ts.map +1 -1
  31. package/dist/icons/ChevronUp.js +1 -3
  32. package/dist/patterns/Drawer/Drawer.d.ts +19 -10
  33. package/dist/patterns/Drawer/Drawer.d.ts.map +1 -1
  34. package/dist/patterns/Drawer/Drawer.js +30 -18
  35. package/dist/patterns/Drawer/Drawer.stories.d.ts +20 -0
  36. package/dist/patterns/Drawer/Drawer.stories.d.ts.map +1 -1
  37. package/dist/patterns/Drawer/Drawer.stories.js +329 -42
  38. package/dist/patterns/Drawer/Drawer.styles.d.ts +1 -1
  39. package/dist/patterns/Drawer/Drawer.styles.d.ts.map +1 -1
  40. package/dist/patterns/Drawer/Drawer.styles.js +11 -1
  41. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +1 -1
  42. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +1 -1
  43. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.js +1 -5
  44. package/package.json +1 -1
@@ -122,12 +122,22 @@ const ip100vhClass = css `
122
122
  height: 100vh;
123
123
  }
124
124
  `;
125
+ /**
126
+ * Hook to inline portals for Storybook stories.
127
+ * - 'sync': release immediately in useLayoutEffect (default, for simple Drawers that don't re-render)
128
+ * - 'none': never release (for Drawers with long content/scroll that trigger internal re-renders)
129
+ */
130
+ const useInlinePortal = (release = 'sync') => {
131
+ inlineCreatePortal();
132
+ useLayoutEffect(() => {
133
+ if (release === 'sync') {
134
+ releaseCreatePortal();
135
+ }
136
+ }, []);
137
+ };
125
138
  export const WithChildren = {
126
139
  render: () => {
127
- inlineCreatePortal();
128
- useLayoutEffect(() => {
129
- releaseCreatePortal();
130
- }, []);
140
+ useInlinePortal('none');
131
141
  return (<>
132
142
  <p>Dialog has string as children.</p>
133
143
  <Box width="full" className={popupInlineClass}>
@@ -155,8 +165,7 @@ export const WithChildren = {
155
165
  };
156
166
  export const CustomizeWithImage = {
157
167
  render: () => {
158
- inlineCreatePortal();
159
- // deliberate left out releaseCreatePortal
168
+ useInlinePortal('none');
160
169
  return (<>
161
170
  <p>Limit Children Height</p>
162
171
  <Box width="full" height="vH" className={`${popupInlineClass} ${ip100vhClass}`}>
@@ -287,10 +296,7 @@ export const CustomizeWithImage = {
287
296
  };
288
297
  export const CustomizeHeader = {
289
298
  render: () => {
290
- inlineCreatePortal();
291
- useLayoutEffect(() => {
292
- releaseCreatePortal();
293
- }, []);
299
+ useInlinePortal('none');
294
300
  return (<>
295
301
  <p>Optional Button Label Text</p>
296
302
  <Box width="full" className={popupInlineClass}>
@@ -359,10 +365,7 @@ export const CustomizeHeader = {
359
365
  };
360
366
  export const ButtonsPosition = {
361
367
  render: () => {
362
- inlineCreatePortal();
363
- useLayoutEffect(() => {
364
- releaseCreatePortal();
365
- }, []);
368
+ useInlinePortal('none');
366
369
  return (<>
367
370
  <p>Buttons on the Left</p>
368
371
  <Box width="full" className={popupInlineClass}>
@@ -435,17 +438,7 @@ export const ButtonsPosition = {
435
438
  };
436
439
  export const EmptyDrawer = {
437
440
  render: () => {
438
- inlineCreatePortal();
439
- useLayoutEffect(() => {
440
- requestAnimationFrame(() => {
441
- requestAnimationFrame(() => {
442
- console.log('raf timeout release');
443
- // this is magic to release the inline portal
444
- // properly and avoid scroll lock
445
- releaseCreatePortal();
446
- });
447
- });
448
- }, []);
441
+ useInlinePortal('none');
449
442
  return (<>
450
443
  <p>Empty Drawer No Styling</p>
451
444
  <Box width="full" className={popupInlineClass}>
@@ -472,27 +465,21 @@ export const EmptyDrawer = {
472
465
  };
473
466
  export const ContentClassName = {
474
467
  render: () => {
475
- inlineCreatePortal();
476
- useLayoutEffect(() => {
477
- requestAnimationFrame(() => {
478
- requestAnimationFrame(() => {
479
- releaseCreatePortal();
480
- });
481
- });
482
- }, []);
468
+ useInlinePortal('none');
483
469
  const contentClassName = css `
484
470
  padding: 0;
485
471
  `;
486
472
  return (<Box width="full" className={popupInlineClass}>
487
- <Drawer open onClose={() => alert('Close clicked')} onPrimaryButtonClick={onMainBtnClick} title="Content class name demo" primaryBtnLabel="Primary" secondaryBtnLabel="Click to Dismiss" btnRowPosition="justify" contentClassName={contentClassName} needBypassScrollLock>
488
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc lacinia
489
- maximus. Donec vel luctus nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam
490
- nec purus nec nunc lacinia maximus. Donec vel luctus nisi. In hac habitasse platea dictumst.
491
- Nulla facilisi. Nullam nec purus nec nunc lacinia maximus. Donec vel luctus nisi. In hac
492
- habitasse platea dictumst. Nulla facilisi. Nullam nec purus nec nunc lacinia maximus. Donec
493
- vel luctus nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam nec purus nec nunc
494
- </Drawer>
495
- </Box>);
473
+ <Drawer open onClose={() => alert('Close clicked')} onPrimaryButtonClick={onMainBtnClick} title="Content class name demo" primaryBtnLabel="Primary" secondaryBtnLabel="Click to Dismiss" btnRowPosition="justify" contentClassName={contentClassName} needBypassScrollLock>
474
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc lacinia
475
+ maximus. Donec vel luctus nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam
476
+ nec purus nec nunc lacinia maximus. Donec vel luctus nisi. In hac habitasse platea
477
+ dictumst. Nulla facilisi. Nullam nec purus nec nunc lacinia maximus. Donec vel luctus
478
+ nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam nec purus nec nunc lacinia
479
+ maximus. Donec vel luctus nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam
480
+ nec purus nec nunc
481
+ </Drawer>
482
+ </Box>);
496
483
  },
497
484
  name: 'ContentClassName',
498
485
  parameters: {
@@ -503,3 +490,303 @@ export const ContentClassName = {
503
490
  },
504
491
  },
505
492
  };
493
+ export const CustomActions = {
494
+ render: () => {
495
+ useInlinePortal('none');
496
+ const verticalActionsStyle = css `
497
+ display: flex;
498
+ flex-direction: column;
499
+ gap: 8px;
500
+ width: 100%;
501
+ `;
502
+ return (<>
503
+ <p>Custom Actions - Horizontal Layout (default)</p>
504
+ <Box width="full" className={popupInlineClass}>
505
+ <Drawer open onClose={() => alert('Close clicked')} title="Custom Actions - Horizontal" actions={<>
506
+ <Button variant="outline" color="tertiary" size="large">
507
+ Cancel
508
+ </Button>
509
+ <Button color="primary" size="large">
510
+ Save
511
+ </Button>
512
+ </>} needBypassScrollLock>
513
+ <ChildrenWrapper>
514
+ <ChildrenTextWrapper>
515
+ <p>
516
+ You can pass custom button components using the actions prop. This gives you full
517
+ control over button variants, colors, and functionality.
518
+ </p>
519
+ </ChildrenTextWrapper>
520
+ </ChildrenWrapper>
521
+ </Drawer>
522
+ </Box>
523
+ <p className={mt24}>Custom Actions - Vertical Layout</p>
524
+ <Box width="full" className={popupInlineClass}>
525
+ <Drawer open onClose={() => alert('Close clicked')} title="Custom Actions - Vertical" actions={<div className={verticalActionsStyle}>
526
+ <Button color="primary" size="large" stretch>
527
+ Confirm
528
+ </Button>
529
+ <Button variant="outline" color="tertiary" size="large" stretch>
530
+ Cancel
531
+ </Button>
532
+ </div>} needBypassScrollLock>
533
+ <ChildrenWrapper>
534
+ <ChildrenTextWrapper>
535
+ <p>
536
+ Vertical layout - just wrap your buttons in a div with flex-direction: column. You
537
+ have complete control over styling and layout.
538
+ </p>
539
+ </ChildrenTextWrapper>
540
+ </ChildrenWrapper>
541
+ </Drawer>
542
+ </Box>
543
+ <p className={mt24}>Custom Actions - Multiple Buttons</p>
544
+ <Box width="full" className={popupInlineClass}>
545
+ <Drawer open onClose={() => alert('Close clicked')} title="Multiple Actions" actions={<>
546
+ <Button variant="outline" color="tertiary" size="large">
547
+ Skip
548
+ </Button>
549
+ <Button variant="outline" color="tertiary" size="large">
550
+ Save Draft
551
+ </Button>
552
+ <Button color="primary" size="large">
553
+ Publish
554
+ </Button>
555
+ </>} needBypassScrollLock>
556
+ <ChildrenWrapper>
557
+ <ChildrenTextWrapper>
558
+ <p>
559
+ You can add as many buttons as you need. The actions prop accepts any React nodes,
560
+ giving you complete flexibility.
561
+ </p>
562
+ </ChildrenTextWrapper>
563
+ </ChildrenWrapper>
564
+ </Drawer>
565
+ </Box>
566
+ </>);
567
+ },
568
+ parameters: {
569
+ docs: {
570
+ description: {
571
+ story: 'Use the `actions` prop to pass custom button components for full control over the action area. You can control layout (horizontal/vertical), alignment, and styling directly in your custom components. The legacy button props (primaryBtnLabel, secondaryBtnLabel) are still supported for backward compatibility.',
572
+ },
573
+ },
574
+ },
575
+ };
576
+ const ScrollableBox = styled.div `
577
+ width: 100%;
578
+ max-height: 200px;
579
+ overflow-y: auto;
580
+ border: 1px solid #e0e0e0;
581
+ border-radius: 8px;
582
+ padding: 16px;
583
+ margin: 16px 0;
584
+ background-color: #f9f9f9;
585
+ `;
586
+ export const NestedScroll = {
587
+ render: () => {
588
+ useInlinePortal('none');
589
+ return (<>
590
+ <p>With Drawer Scrollbar (default)</p>
591
+ <Box width="full" height="vH" className={`${popupInlineClass} ${ip100vhClass}`}>
592
+ <Drawer open onClose={() => alert('Close clicked')} title="Nested Scroll - With Drawer Scrollbar" actions={<>
593
+ <Button variant="outline" color="tertiary" size="large">
594
+ Cancel
595
+ </Button>
596
+ <Button color="primary" size="large">
597
+ Confirm
598
+ </Button>
599
+ </>} needBypassScrollLock>
600
+ <ChildrenWrapper>
601
+ <ChildrenTextWrapper>
602
+ <h4>Long Content with Nested Scrollable Area</h4>
603
+ <p>
604
+ This drawer demonstrates two independent scroll areas: the drawer&apos;s main
605
+ scroll and a nested scrollable box below. Both scrollbars are visible.
606
+ </p>
607
+
608
+ <h5>Section 1</h5>
609
+ <p>
610
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
611
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
612
+ nostrud amet.
613
+ </p>
614
+ <p>
615
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
616
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
617
+ nostrud amet.
618
+ </p>
619
+
620
+ <h5>Nested Scrollable Box</h5>
621
+ <ScrollableBox>
622
+ <h6>This box has its own scroll</h6>
623
+ <p>Line 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
624
+ <p>Line 2: Nullam nec purus nec nunc lacinia maximus.</p>
625
+ <p>Line 3: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
626
+ <p>Line 4: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
627
+ <p>Line 5: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
628
+ <p>Line 6: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
629
+ <p>Line 7: Nullam nec purus nec nunc lacinia maximus.</p>
630
+ <p>Line 8: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
631
+ <p>Line 9: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
632
+ <p>Line 10: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
633
+ </ScrollableBox>
634
+
635
+ <h5>Section 2</h5>
636
+ <p>
637
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
638
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
639
+ nostrud amet.
640
+ </p>
641
+ <p>
642
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
643
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
644
+ nostrud amet.
645
+ </p>
646
+
647
+ <h5>Section 3</h5>
648
+ <p>
649
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
650
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
651
+ nostrud amet.
652
+ </p>
653
+ <p>
654
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
655
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
656
+ nostrud amet.
657
+ </p>
658
+
659
+ <h5>Section 4</h5>
660
+ <p>
661
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
662
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
663
+ nostrud amet.
664
+ </p>
665
+ <p>
666
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
667
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
668
+ nostrud amet.
669
+ </p>
670
+
671
+ <h5>Section 5</h5>
672
+ <p>
673
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
674
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
675
+ nostrud amet.
676
+ </p>
677
+ <p>
678
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
679
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
680
+ nostrud amet. This is the end of the content.
681
+ </p>
682
+ </ChildrenTextWrapper>
683
+ </ChildrenWrapper>
684
+ </Drawer>
685
+ </Box>
686
+
687
+ <p className={mt24}>Hidden Drawer Scrollbar - Only Nested Box Shows Scrollbar</p>
688
+ <Box width="full" height="vH" className={`${popupInlineClass} ${ip100vhClass}`}>
689
+ <Drawer open onClose={() => alert('Close clicked')} title="Nested Scroll - Hidden Drawer Scrollbar" actions={<>
690
+ <Button variant="outline" color="tertiary" size="large">
691
+ Cancel
692
+ </Button>
693
+ <Button color="primary" size="large">
694
+ Confirm
695
+ </Button>
696
+ </>} hideScrollbar needBypassScrollLock>
697
+ <ChildrenWrapper>
698
+ <ChildrenTextWrapper>
699
+ <h4>Long Content with Nested Scrollable Area</h4>
700
+ <p>
701
+ This drawer has hideScrollbar=true. The main drawer scrollbar is hidden, but you
702
+ can still scroll the content. Only the nested box shows a scrollbar.
703
+ </p>
704
+
705
+ <h5>Section 1</h5>
706
+ <p>
707
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
708
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
709
+ nostrud amet.
710
+ </p>
711
+ <p>
712
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
713
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
714
+ nostrud amet.
715
+ </p>
716
+
717
+ <h5>Nested Scrollable Box</h5>
718
+ <ScrollableBox>
719
+ <h6>This box has its own scroll (scrollbar visible)</h6>
720
+ <p>Line 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
721
+ <p>Line 2: Nullam nec purus nec nunc lacinia maximus.</p>
722
+ <p>Line 3: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
723
+ <p>Line 4: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
724
+ <p>Line 5: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
725
+ <p>Line 6: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
726
+ <p>Line 7: Nullam nec purus nec nunc lacinia maximus.</p>
727
+ <p>Line 8: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
728
+ <p>Line 9: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
729
+ <p>Line 10: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
730
+ </ScrollableBox>
731
+
732
+ <h5>Section 2</h5>
733
+ <p>
734
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
735
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
736
+ nostrud amet.
737
+ </p>
738
+ <p>
739
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
740
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
741
+ nostrud amet.
742
+ </p>
743
+
744
+ <h5>Section 3</h5>
745
+ <p>
746
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
747
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
748
+ nostrud amet.
749
+ </p>
750
+ <p>
751
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
752
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
753
+ nostrud amet.
754
+ </p>
755
+
756
+ <h5>Section 4</h5>
757
+ <p>
758
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
759
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
760
+ nostrud amet.
761
+ </p>
762
+ <p>
763
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
764
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
765
+ nostrud amet.
766
+ </p>
767
+
768
+ <h5>Section 5</h5>
769
+ <p>
770
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
771
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
772
+ nostrud amet.
773
+ </p>
774
+ <p>
775
+ Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
776
+ officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
777
+ nostrud amet. This is the end of the content.
778
+ </p>
779
+ </ChildrenTextWrapper>
780
+ </ChildrenWrapper>
781
+ </Drawer>
782
+ </Box>
783
+ </>);
784
+ },
785
+ parameters: {
786
+ docs: {
787
+ description: {
788
+ story: "Testing two independent scroll areas with the `hideScrollbar` prop. When hideScrollbar=true, the drawer's main scrollbar is hidden (useful for Safari), but only nested scrollable elements show scrollbars. The drawer content remains scrollable.",
789
+ },
790
+ },
791
+ },
792
+ };
@@ -11,7 +11,7 @@ declare const StyledHeader: import("@linaria/react").StyledMeta & import("react"
11
11
  as?: import("react").ElementType;
12
12
  }>;
13
13
  declare const StyledButtonGroup: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
14
- position: {
14
+ position?: {
15
15
  justifyContent: string;
16
16
  };
17
17
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.styles.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,KAAK;;EAeV,CAAC;AAEF,QAAA,MAAM,QAAQ;;EAQb,CAAC;AAEF,QAAA,MAAM,WAAW;;EA4DhB,CAAC;AAEF,QAAA,MAAM,YAAY;;EA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AC;AAEF,OAAO,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,yBAAyB,EACzB,YAAY,EACZ,cAAc,GACf,CAAC"}
@@ -106,7 +106,7 @@ const StyledButtonGroup = styled.div `
106
106
  display: flex;
107
107
  padding: ${space.md} ${space.md};
108
108
  width: ${sizes.full};
109
- justify-content: ${({ position }) => position.justifyContent};
109
+ justify-content: ${({ position }) => (position === null || position === void 0 ? void 0 : position.justifyContent) || 'flex-end'};
110
110
  align-items: center;
111
111
  border-top: ${borderWidths.sm} solid ${colors.borderThin};
112
112
  gap: ${space.xs};
@@ -264,6 +264,16 @@ const ChildrenContent = styled.div `
264
264
  max-height: calc(${sizes.vH} - 76px);
265
265
  }
266
266
 
267
+ &.hide-scrollbar {
268
+ /* Hide scrollbar for Chrome, Safari and Opera */
269
+ &::-webkit-scrollbar {
270
+ display: none;
271
+ }
272
+ /* Hide scrollbar for IE, Edge and Firefox */
273
+ -ms-overflow-style: none; /* IE and Edge */
274
+ scrollbar-width: none; /* Firefox */
275
+ }
276
+
267
277
  @media ${mediaQueries.tablet} {
268
278
  /* move scrollbar to edge so that is doesn't overlie text */
269
279
  width: calc(${sizes.full} + ${space.lg} * 2);
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSearchDropdown.d.ts","sourceRoot":"","sources":["../../../patterns/MultiSearchDropdown/MultiSearchDropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AA6BnD,MAAM,MAAM,yBAAyB,GAAG;IACtC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MA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,IAAI,CAAC;IACzD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8X3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"MultiSearchDropdown.d.ts","sourceRoot":"","sources":["../../../patterns/MultiSearchDropdown/MultiSearchDropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AA6BnD,MAAM,MAAM,yBAAyB,GAAG;IACtC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,EAAE,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI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EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA+X3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSearchDropdown.styles.d.ts","sourceRoot":"","sources":["../../../patterns/MultiSearchDropdown/MultiSearchDropdown.styles.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,SAAS,0CA+Bd,CAAC;AAEF,QAAA,MAAM,WAAW,0CAmBhB,CAAC;AAEF,QAAA,MAAM,kBAAkB,0CAGvB,CAAC;AAEF,QAAA,MAAM,0BAA0B;;EAiC/B,CAAC;AAEF,QAAA,MAAM,6BAA6B,0CAuBlC,CAAC;AAEF,QAAA,MAAM,uBAAuB,0CAS5B,CAAC;AAEF,QAAA,MAAM,mBAAmB,0CAwBxB,CAAC;AAEF,QAAA,MAAM,iBAAiB;;EActB,CAAC;AAEF,QAAA,MAAM,qBAAqB,0CAO1B,CAAC;AAEF,QAAA,MAAM,iBAAiB,0CAEtB,CAAC;AAEF,QAAA,MAAM,uBAAuB,0CAS5B,CAAC;AAEF,QAAA,MAAM,aAAa,0CAwBlB,CAAC;AAEF,QAAA,MAAM,SAAS;;EAUd,CAAC;AAEF,QAAA,MAAM,OAAO;WAAuB,MAAM;;;EAMzC,CAAC;AAEF,OAAO,EACL,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC1B,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,SAAS,EACT,OAAO,EACP,iBAAiB,GAClB,CAAC"}
1
+ {"version":3,"file":"MultiSearchDropdown.styles.d.ts","sourceRoot":"","sources":["../../../patterns/MultiSearchDropdown/MultiSearchDropdown.styles.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,SAAS,0CA+Bd,CAAC;AAEF,QAAA,MAAM,WAAW,0CAmBhB,CAAC;AAEF,QAAA,MAAM,kBAAkB,0CAGvB,CAAC;AAEF,QAAA,MAAM,0BAA0B;;EAiC/B,CAAC;AAEF,QAAA,MAAM,6BAA6B,0CAuBlC,CAAC;AAEF,QAAA,MAAM,uBAAuB,0CAS5B,CAAC;AAEF,QAAA,MAAM,mBAAmB,0CAwBxB,CAAC;AAEF,QAAA,MAAM,iBAAiB;;EActB,CAAC;AAEF,QAAA,MAAM,qBAAqB,0CAO1B,CAAC;AAEF,QAAA,MAAM,iBAAiB,0CAEtB,CAAC;AAEF,QAAA,MAAM,uBAAuB,0CAS5B,CAAC;AAEF,QAAA,MAAM,aAAa,0CAoBlB,CAAC;AAEF,QAAA,MAAM,SAAS;;EAUd,CAAC;AAEF,QAAA,MAAM,OAAO;WAAuB,MAAM;;;EAMzC,CAAC;AAEF,OAAO,EACL,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,0BAA0B,EAC1B,uBAAuB,EACvB,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,SAAS,EACT,OAAO,EACP,iBAAiB,GAClB,CAAC"}
@@ -203,11 +203,7 @@ const DisabledClass = css `
203
203
  ${StyledSearchInput} {
204
204
  background-color: ${colors.backgroundSecondary};
205
205
  }
206
- /* chip button */
207
- button > svg {
208
- background-color: ${colors.gray200};
209
- }
210
-
206
+
211
207
  &:hover {
212
208
  border-color: ${colors.backgroundSecondary};
213
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chotot/clad-ui",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Classified Ads group (Carousell, Chotot, Mudah, Onekyat) design system.",
5
5
  "repository": {
6
6
  "type": "git",