se-design 1.0.3 → 1.0.8-5.dev.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/assets/colors.css +26 -13
- package/dist/assets/icons/ai-off.svg +6 -0
- package/dist/assets/icons/ai-re-run.svg +5 -0
- package/dist/assets/icons/arrow-head.svg +8 -0
- package/dist/assets/icons/center-align.svg +3 -0
- package/dist/assets/icons/chat.svg +4 -0
- package/dist/assets/icons/checkbox-disabled-minus.svg +1 -1
- package/dist/assets/icons/checkbox-disabled-tick.svg +1 -1
- package/dist/assets/icons/checkbox-fill.svg +1 -1
- package/dist/assets/icons/checkbox-hover-fill.svg +2 -2
- package/dist/assets/icons/checkbox-hover-minus.svg +1 -1
- package/dist/assets/icons/checkbox-hover-tick.svg +1 -1
- package/dist/assets/icons/checkbox-minus.svg +1 -1
- package/dist/assets/icons/checkbox-tick.svg +1 -1
- package/dist/assets/icons/combobox-field.svg +6 -0
- package/dist/assets/icons/command.svg +1 -1
- package/dist/assets/icons/envelope.svg +4 -0
- package/dist/assets/icons/file-filled-checked.svg +8 -0
- package/dist/assets/icons/filter.svg +3 -0
- package/dist/assets/icons/google-drive.svg +8 -0
- package/dist/assets/icons/home.svg +3 -2
- package/dist/assets/icons/left-align.svg +3 -0
- package/dist/assets/icons/library.svg +6 -0
- package/dist/assets/icons/minus.svg +3 -0
- package/dist/assets/icons/plus.svg +4 -0
- package/dist/assets/icons/reports.svg +4 -0
- package/dist/assets/icons/repository.svg +4 -0
- package/dist/assets/icons/right-align.svg +3 -0
- package/dist/assets/icons/sort-asc.svg +3 -4
- package/dist/assets/icons/sort-desc.svg +2 -3
- package/dist/assets/icons/tag.svg +2 -2
- package/dist/assets/icons/views.svg +7 -0
- package/dist/assets/icons/warning.svg +10 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/typographyMixin.scss +8 -0
- package/dist/components/AccessibleDiv/index.d.ts +46 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/AutoCompleteInput/index.d.ts +37 -7
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Banner/index.d.ts +17 -4
- package/dist/components/BottomSheet/index.d.ts +14 -0
- package/dist/components/BreadCrumbs/index.d.ts +5 -0
- package/dist/components/Button/index.d.ts +51 -7
- package/dist/components/Checkbox/index.d.ts +35 -0
- package/dist/components/CustomAccordion/index.d.ts +6 -0
- package/dist/components/CustomModal/index.d.ts +56 -1
- package/dist/components/DatePicker/index.d.ts +7 -0
- package/dist/components/DatePicker/useDatePickerA11y.d.ts +47 -0
- package/dist/components/Dropdown/index.d.ts +23 -0
- package/dist/components/DropdownWithInputTags/index.d.ts +12 -2
- package/dist/components/GuidedTour/index.d.ts +27 -0
- package/dist/components/Header/index.d.ts +3 -2
- package/dist/components/Icon/index.d.ts +45 -4
- package/dist/components/InfoTooltip/index.d.ts +14 -1
- package/dist/components/Input/index.d.ts +38 -6
- package/dist/components/InputWithIcon/index.d.ts +36 -2
- package/dist/components/KebabMenu/index.d.ts +1 -0
- package/dist/components/LabelChip/index.d.ts +3 -0
- package/dist/components/Link/index.d.ts +64 -0
- package/dist/components/MenuItem/index.d.ts +13 -3
- package/dist/components/MenuList/index.d.ts +3 -2
- package/dist/components/MessageBar/index.d.ts +20 -1
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/NavigationBar/TabButton.d.ts +20 -0
- package/dist/components/NavigationBar/index.d.ts +8 -1
- package/dist/components/OTPInput/index.d.ts +1 -0
- package/dist/components/OnboardingTour/index.d.ts +35 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Paywall/index.d.ts +47 -0
- package/dist/components/PhoneInput/index.d.ts +27 -0
- package/dist/components/Popover/index.d.ts +15 -3
- package/dist/components/Radio/index.d.ts +7 -1
- package/dist/components/RadioGroup/index.d.ts +18 -0
- package/dist/components/ShimmerLoader/index.d.ts +4 -2
- package/dist/components/SidebarOverlay/index.d.ts +36 -0
- package/dist/components/SkipLinksBar/index.d.ts +11 -0
- package/dist/components/SnackBar/index.d.ts +5 -2
- package/dist/components/Spinner/index.d.ts +13 -1
- package/dist/components/TableLayout/index.d.ts +18 -0
- package/dist/components/Tabs/index.d.ts +6 -1
- package/dist/components/TimePicker/index.d.ts +14 -0
- package/dist/components/Toggle/index.d.ts +25 -1
- package/dist/components/Tooltip/index.d.ts +19 -2
- package/dist/components/index.d.ts +8 -0
- package/dist/index.js +153 -108
- package/dist/index.js.map +1 -1
- package/dist/index10.js +23 -48
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +2 -2
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +74 -18
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +2 -2
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +2 -2
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +76 -11
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -2
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +64 -5
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +15 -138
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +2 -2
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +2 -2
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +2 -2
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +10 -54
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -2
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +2 -2
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +2 -2
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +2 -2
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +216 -54
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +2 -149
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +5 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +5 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +5 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +5 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +5 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +5 -0
- package/dist/index166.js.map +1 -0
- package/dist/index167.js +5 -0
- package/dist/index167.js.map +1 -0
- package/dist/index168.js +5 -0
- package/dist/index168.js.map +1 -0
- package/dist/index169.js +5 -0
- package/dist/index169.js.map +1 -0
- package/dist/index17.js +60 -255
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +5 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +5 -0
- package/dist/index171.js.map +1 -0
- package/dist/index172.js +2 -12
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +5 -0
- package/dist/index173.js.map +1 -0
- package/dist/index174.js +5 -0
- package/dist/index174.js.map +1 -0
- package/dist/index175.js +5 -0
- package/dist/index175.js.map +1 -0
- package/dist/index176.js +5 -0
- package/dist/index176.js.map +1 -0
- package/dist/index177.js +5 -0
- package/dist/index177.js.map +1 -0
- package/dist/index178.js +5 -0
- package/dist/index178.js.map +1 -0
- package/dist/index179.js +5 -0
- package/dist/index179.js.map +1 -0
- package/dist/index18.js +128 -11
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +1 -1232
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +5 -0
- package/dist/index181.js.map +1 -0
- package/dist/index182.js +5 -0
- package/dist/index182.js.map +1 -0
- package/dist/index183.js +5 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +2 -4
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -0
- package/dist/index185.js.map +1 -0
- package/dist/index186.js +5 -0
- package/dist/index186.js.map +1 -0
- package/dist/index187.js +5 -0
- package/dist/index187.js.map +1 -0
- package/dist/index188.js +5 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +2 -10
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +360 -32
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +1 -9
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +2 -5
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -170
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +2 -11
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +1 -5
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +2 -6
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -38
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -2
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +2 -8
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -327
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +18 -55
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +2 -50
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -2
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -76
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +147 -91
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +8 -51
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +5 -7
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +4 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +41 -50
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +21 -2
- package/dist/index208.js.map +1 -1
- package/dist/index21.js +33 -76
- package/dist/index21.js.map +1 -1
- package/dist/index215.js +31 -0
- package/dist/index215.js.map +1 -0
- package/dist/index216.js +75 -0
- package/dist/index216.js.map +1 -0
- package/dist/index22.js +64 -21
- package/dist/index22.js.map +1 -1
- package/dist/index224.js +15 -0
- package/dist/index224.js.map +1 -0
- package/dist/index23.js +84 -187
- package/dist/index23.js.map +1 -1
- package/dist/index232.js +1236 -0
- package/dist/index232.js.map +1 -0
- package/dist/index235.js +46 -0
- package/dist/index235.js.map +1 -0
- package/dist/index24.js +21 -45
- package/dist/index24.js.map +1 -1
- package/dist/index244.js +173 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +7 -0
- package/dist/index245.js.map +1 -0
- package/dist/index247.js +22 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +13 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +13 -0
- package/dist/index249.js.map +1 -0
- package/dist/index25.js +384 -18
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +8 -0
- package/dist/index250.js.map +1 -0
- package/dist/index251.js +173 -0
- package/dist/index251.js.map +1 -0
- package/dist/index252.js +14 -0
- package/dist/index252.js.map +1 -0
- package/dist/index253.js +9 -0
- package/dist/index253.js.map +1 -0
- package/dist/index254.js +9 -0
- package/dist/index254.js.map +1 -0
- package/dist/index255.js +41 -0
- package/dist/index255.js.map +1 -0
- package/dist/index256.js +5 -0
- package/dist/index256.js.map +1 -0
- package/dist/index257.js +11 -0
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +330 -0
- package/dist/index258.js.map +1 -0
- package/dist/index259.js +53 -0
- package/dist/index259.js.map +1 -0
- package/dist/index26.js +46 -51
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +5 -0
- package/dist/index260.js.map +1 -0
- package/dist/index261.js +79 -0
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +96 -0
- package/dist/index262.js.map +1 -0
- package/dist/index263.js +55 -0
- package/dist/index263.js.map +1 -0
- package/dist/index264.js +11 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +8 -0
- package/dist/index265.js.map +1 -0
- package/dist/index266.js +55 -0
- package/dist/index266.js.map +1 -0
- package/dist/index267.js +5 -0
- package/dist/index267.js.map +1 -0
- package/dist/{index209.js → index268.js} +1 -1
- package/dist/index268.js.map +1 -0
- package/dist/index27.js +22 -78
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +108 -83
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +148 -49
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +69 -65
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +133 -95
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +77 -56
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +99 -32
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +75 -36
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +42 -46
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +72 -56
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +96 -244
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +50 -37
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +306 -82
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +70 -31
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +108 -42
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +82 -50
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +27 -67
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +45 -51
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +109 -94
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +54 -92
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +143 -35
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +194 -30
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +36 -30
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +34 -53
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +142 -359
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +41 -238
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +82 -61
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +458 -35
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +98 -38
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +42 -84
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +36 -140
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +88 -136
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +163 -29
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +143 -45
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +36 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +86 -2
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +328 -50
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +119 -2
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +78 -2
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +152 -2
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +318 -2
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +47 -2
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +145 -2
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +12 -2
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +46 -2
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +103 -2
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +19 -2
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +44 -51
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +66 -2
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +27 -2
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +108 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +62 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +21 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +171 -2
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +18 -2
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +11 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +5 -2
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +56 -2
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +48 -18
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +27 -2
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +9 -2
- package/dist/index81.js.map +1 -1
- package/dist/index83.js +2 -2
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +2 -2
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +2 -2
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +2 -2
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +91 -59
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +2 -2
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +2 -2
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +2 -2
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +2 -2
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index209.js.map +0 -1
- package/dist/index82.js +0 -5
- package/dist/index82.js.map +0 -1
package/dist/index31.js
CHANGED
|
@@ -1,59 +1,80 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
className:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
import s, { useEffect as N } from "react";
|
|
2
|
+
import { Icon as g } from "./index6.js";
|
|
3
|
+
import { announce as k } from "./index75.js";
|
|
4
|
+
const m = {
|
|
5
|
+
pageNavigation: "px-[6px] py-[6px] flex items-center justify-center",
|
|
6
|
+
pageItem: "px-[7px] py-[1px] min-w-[24px] text-sm flex items-center justify-center rounded border hover:cursor-pointer appearance-none focus-outline"
|
|
7
|
+
}, C = ({
|
|
8
|
+
currentPage: a,
|
|
9
|
+
itemsPerPage: l,
|
|
10
|
+
totalItems: i,
|
|
11
|
+
onPageChange: p,
|
|
12
|
+
mobileView: u = !1,
|
|
13
|
+
ariaLabel: b = "Pagination Controls"
|
|
14
|
+
}) => {
|
|
15
|
+
const o = Math.ceil(i / l), d = 1, v = o, h = (a - 1) * l + 1, c = Math.min(a * l, i), y = c < i, $ = a > 1, f = `Showing ${h}-${c} of ${i}`;
|
|
16
|
+
N(() => {
|
|
17
|
+
k(f, {
|
|
18
|
+
batchId: "pagination-status"
|
|
19
|
+
});
|
|
20
|
+
}, [f]);
|
|
21
|
+
const E = () => {
|
|
22
|
+
const e = [], t = (n) => {
|
|
23
|
+
const x = a === n;
|
|
24
|
+
return /* @__PURE__ */ s.createElement("li", {
|
|
25
|
+
key: n
|
|
26
|
+
}, /* @__PURE__ */ s.createElement("button", {
|
|
27
|
+
type: "button",
|
|
28
|
+
onClick: () => p(n),
|
|
29
|
+
className: `${m.pageItem} ${x ? "bg-[var(--color-gray-100)] border-[var(--color-gray-300)]" : "border-[var(--color-gray-200)] hover:bg-[var(--color-gray-50)]"}`,
|
|
30
|
+
"aria-label": `Page ${n}`,
|
|
31
|
+
"aria-current": x ? "page" : void 0,
|
|
32
|
+
"data-automation-id": `page-number-${n}`
|
|
33
|
+
}, n));
|
|
34
|
+
}, r = (n) => /* @__PURE__ */ s.createElement("li", {
|
|
35
|
+
key: n,
|
|
36
|
+
"aria-hidden": "true"
|
|
37
|
+
}, /* @__PURE__ */ s.createElement("span", {
|
|
38
|
+
className: "w-5 h-5 text-sm rounded border border-[var(--color-gray-200)] flex items-end justify-center"
|
|
39
|
+
}, "..."));
|
|
40
|
+
if (u)
|
|
41
|
+
return e.push(t(a)), e;
|
|
42
|
+
if (a <= 3) {
|
|
43
|
+
for (let n = 1; n <= Math.min(3, o); n++)
|
|
44
|
+
e.push(t(n));
|
|
45
|
+
o > 3 && (e.push(r("ellipsis-end")), e.push(t(o)));
|
|
46
|
+
} else a >= o - 2 ? (e.push(t(d)), e.push(r("ellipsis-start")), e.push(t(o - 2)), e.push(t(o - 1)), e.push(t(o))) : (e.push(t(d)), e.push(r("ellipsis-start")), e.push(t(a - 1)), e.push(t(a)), e.push(t(a + 1)), e.push(r("ellipsis-end")), e.push(t(v)));
|
|
47
|
+
return e;
|
|
48
|
+
};
|
|
49
|
+
return /* @__PURE__ */ s.createElement("nav", {
|
|
50
|
+
"aria-label": b,
|
|
51
|
+
"data-automation-id": "pagination-container",
|
|
52
|
+
className: "flex items-center gap-1 font-normal"
|
|
53
|
+
}, /* @__PURE__ */ s.createElement("span", {
|
|
54
|
+
className: "text-sm text-[var(--color-gray-700)] mr-1",
|
|
55
|
+
"data-automation-id": "pagination-items-info"
|
|
56
|
+
}, `${u ? "" : "Showing "}${h}-${c} of ${i}`), /* @__PURE__ */ s.createElement(g, {
|
|
57
|
+
name: "next",
|
|
58
|
+
size: 12,
|
|
59
|
+
ariaLabel: "Previous page",
|
|
60
|
+
rotation: "180",
|
|
61
|
+
disabled: !$,
|
|
62
|
+
onClick: () => p(a - 1),
|
|
63
|
+
className: `stroke-[var(--color-gray-600)] ${m.pageNavigation}`,
|
|
64
|
+
automationId: "pagination-previous-button"
|
|
65
|
+
}), /* @__PURE__ */ s.createElement("ul", {
|
|
66
|
+
className: "flex items-center gap-1"
|
|
67
|
+
}, E()), /* @__PURE__ */ s.createElement(g, {
|
|
68
|
+
name: "next",
|
|
69
|
+
size: 12,
|
|
70
|
+
ariaLabel: "Next page",
|
|
71
|
+
disabled: !y,
|
|
72
|
+
onClick: () => p(a + 1),
|
|
73
|
+
className: m.pageNavigation,
|
|
74
|
+
automationId: "pagination-next-button"
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
56
77
|
export {
|
|
57
|
-
|
|
78
|
+
C as Pagination
|
|
58
79
|
};
|
|
59
80
|
//# sourceMappingURL=index31.js.map
|
package/dist/index31.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index31.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index31.js","sources":["../src/components/Pagination/index.tsx"],"sourcesContent":["import React, { useEffect } from 'react';\n\nimport { Icon } from 'components/Icon';\nimport { announce } from 'src/utils/a11y/liveAnnouncer/LiveAnnouncer';\n\ninterface PaginationProps {\n currentPage: number;\n itemsPerPage: number;\n totalItems: number;\n onPageChange: (page: number) => void;\n mobileView?: boolean;\n ariaLabel?: string;\n}\n\nconst paginationClassNames = {\n pageNavigation: \"px-[6px] py-[6px] flex items-center justify-center\",\n pageItem: \"px-[7px] py-[1px] min-w-[24px] text-sm flex items-center justify-center rounded border hover:cursor-pointer appearance-none focus-outline\"\n}\n\nexport const Pagination: React.FC<PaginationProps> = ({ currentPage, itemsPerPage, totalItems, onPageChange, mobileView = false, ariaLabel = 'Pagination Controls' }) => {\n const totalPages = Math.ceil(totalItems / itemsPerPage);\n const firstPage = 1;\n const lastPage = totalPages;\n const startItem = (currentPage - 1) * itemsPerPage + 1;\n const endItem = Math.min(currentPage * itemsPerPage, totalItems);\n const hasNextPage = endItem < totalItems;\n const hasPrevPage = currentPage > 1;\n\n const showingText = `Showing ${startItem}-${endItem} of ${totalItems}`;\n\n useEffect(() => {\n announce(showingText, { batchId: 'pagination-status' });\n }, [showingText]);\n\n const renderPageNumbers = () => {\n const pages: React.ReactNode[] = [];\n\n const renderPageNumber = (pageNum: number) => {\n const isActive = currentPage === pageNum;\n return (\n <li key={pageNum}>\n <button\n type=\"button\"\n onClick={() => onPageChange(pageNum)}\n className={`${paginationClassNames.pageItem} ${isActive ? 'bg-[var(--color-gray-100)] border-[var(--color-gray-300)]' : 'border-[var(--color-gray-200)] hover:bg-[var(--color-gray-50)]'}`}\n aria-label={`Page ${pageNum}`}\n aria-current={isActive ? 'page' : undefined}\n data-automation-id={`page-number-${pageNum}`}\n >\n {pageNum}\n </button>\n </li>\n );\n };\n\n const renderEllipsis = (key: string) => {\n return (\n <li key={key} aria-hidden=\"true\">\n <span className=\"w-5 h-5 text-sm rounded border border-[var(--color-gray-200)] flex items-end justify-center\">\n ...\n </span>\n </li>\n );\n };\n\n if (mobileView) {\n pages.push(renderPageNumber(currentPage));\n return pages;\n }\n if (currentPage <= 3) {\n for (let i = 1; i <= Math.min(3, totalPages); i++) {\n pages.push(renderPageNumber(i));\n }\n\n if (totalPages > 3) {\n pages.push(renderEllipsis(\"ellipsis-end\"));\n pages.push(renderPageNumber(totalPages));\n }\n } else if (currentPage >= totalPages - 2) {\n pages.push(renderPageNumber(firstPage));\n pages.push(renderEllipsis(\"ellipsis-start\"));\n pages.push(renderPageNumber(totalPages - 2));\n pages.push(renderPageNumber(totalPages - 1));\n pages.push(renderPageNumber(totalPages));\n } else {\n pages.push(renderPageNumber(firstPage));\n pages.push(renderEllipsis(\"ellipsis-start\"));\n pages.push(renderPageNumber(currentPage - 1));\n pages.push(renderPageNumber(currentPage));\n pages.push(renderPageNumber(currentPage + 1));\n pages.push(renderEllipsis(\"ellipsis-end\"));\n pages.push(renderPageNumber(lastPage));\n }\n\n return pages;\n };\n\n return (\n <nav aria-label={ariaLabel} data-automation-id=\"pagination-container\" className=\"flex items-center gap-1 font-normal\">\n <span\n className=\"text-sm text-[var(--color-gray-700)] mr-1\"\n data-automation-id=\"pagination-items-info\"\n >\n {`${mobileView ? \"\" : \"Showing \"}${startItem}-${endItem} of ${totalItems}`}\n </span>\n <Icon\n name=\"next\"\n size={12}\n ariaLabel=\"Previous page\"\n rotation=\"180\"\n disabled={!hasPrevPage}\n onClick={() => onPageChange(currentPage - 1)}\n className={`stroke-[var(--color-gray-600)] ${paginationClassNames.pageNavigation}`}\n automationId=\"pagination-previous-button\"\n />\n <ul className=\"flex items-center gap-1\">\n {renderPageNumbers()}\n </ul>\n <Icon\n name=\"next\"\n size={12}\n ariaLabel=\"Next page\"\n disabled={!hasNextPage}\n onClick={() => onPageChange(currentPage + 1)}\n className={paginationClassNames.pageNavigation}\n automationId=\"pagination-next-button\"\n />\n </nav>\n );\n};\n"],"names":["React__default","useEffect","Icon","announce","paginationClassNames","pageNavigation","pageItem","Pagination","currentPage","itemsPerPage","totalItems","onPageChange","mobileView","ariaLabel","totalPages","Math","ceil","firstPage","lastPage","startItem","endItem","min","hasNextPage","hasPrevPage","showingText","batchId","renderPageNumbers","pages","renderPageNumber","pageNum","isActive","React","createElement","key","type","onClick","className","undefined","renderEllipsis","push","i","name","size","rotation","disabled","automationId"],"mappings":"AAcA,OAAAA,KAAA,aAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,SAAA,YAAAC,SAAA;AAAA,MAAMC,IAAuB;AAAA,EAC3BC,gBAAgB;AAAA,EAChBC,UAAU;AACZ,GAEaC,IAAwCA,CAAC;AAAA,EAAEC,aAAAA;AAAAA,EAAaC,cAAAA;AAAAA,EAAcC,YAAAA;AAAAA,EAAYC,cAAAA;AAAAA,EAAcC,YAAAA,IAAa;AAAA,EAAOC,WAAAA,IAAY;AAAsB,MAAM;AACvK,QAAMC,IAAaC,KAAKC,KAAKN,IAAaD,CAAY,GAChDQ,IAAY,GACZC,IAAWJ,GACXK,KAAaX,IAAc,KAAKC,IAAe,GAC/CW,IAAUL,KAAKM,IAAIb,IAAcC,GAAcC,CAAU,GACzDY,IAAcF,IAAUV,GACxBa,IAAcf,IAAc,GAE5BgB,IAAc,WAAWL,CAAS,IAAIC,CAAO,OAAOV,CAAU;AAEpET,EAAAA,EAAU,MAAM;AACdE,IAAAA,EAASqB,GAAa;AAAA,MAAEC,SAAS;AAAA,IAAA,CAAqB;AAAA,EACxD,GAAG,CAACD,CAAW,CAAC;AAEhB,QAAME,IAAoBA,MAAM;AAC9B,UAAMC,IAA2B,CAAA,GAE3BC,IAAmBA,CAACC,MAAoB;AAC5C,YAAMC,IAAWtB,MAAgBqB;AACjC,aACEE,gBAAAA,EAAAC,cAAA,MAAA;AAAA,QAAIC,KAAKJ;AAAAA,MAAAA,GACPE,gBAAAA,EAAAC,cAAA,UAAA;AAAA,QACEE,MAAK;AAAA,QACLC,SAASA,MAAMxB,EAAakB,CAAO;AAAA,QACnCO,WAAW,GAAGhC,EAAqBE,QAAQ,IAAIwB,IAAW,8DAA8D,gEAAgE;AAAA,QAC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
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
import { Button as N } from "./index4.js";
|
|
3
|
+
import { Badge as I } from "./index10.js";
|
|
4
|
+
import { Icon as d } from "./index6.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const t = {
|
|
7
|
+
widgetCtn: "flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px] w-[385px]",
|
|
8
|
+
widgetImageCtn: "cursor-pointer",
|
|
9
|
+
descriptionCtn: "p-4 flex flex-col",
|
|
10
|
+
widgetTitle: "text-[var(--color-gray-900)] mt-[4px] mb-[8px]",
|
|
11
|
+
widgetDescription: "text-[var(--color-gray-700)] mb-[4px]",
|
|
12
|
+
widgetLinkCta: "text-[var(--color-blue-500)] cursor-pointer hover:text-[var(--color-blue-600)]",
|
|
13
|
+
widgetButtonCta: "self-start",
|
|
14
|
+
widgetBadge: "w-fit",
|
|
15
|
+
webinarInfoCtn: "flex flex-col gap-2",
|
|
16
|
+
webinarSpeaker: "text-[var(--color-gray-700)]",
|
|
17
|
+
webinarDate: "text-[var(--color-gray-700)]",
|
|
18
|
+
webinarDescriptionInfo: "flex gap-2",
|
|
19
|
+
webinarTimeInfo: "flex gap-2",
|
|
20
|
+
requestFeatureCtn: "flex gap-[12px]",
|
|
21
|
+
requestFeatureImageCtn: "w-[48px] h-[48px] border border-[var(--color-gray-200)] rounded-[50%] flex items-center flex-shrink-0 bg-[var(--color-red-50)]",
|
|
22
|
+
requestFeatureDescriptionCtn: "flex flex-col"
|
|
23
|
+
}, B = ({
|
|
24
|
+
widgetClassName: g = "",
|
|
25
|
+
widgetType: a = "general",
|
|
26
|
+
widgetTitle: r = "",
|
|
27
|
+
widgetDescription: l = "",
|
|
28
|
+
widgetImage: p,
|
|
29
|
+
hasImage: f = !1,
|
|
30
|
+
hasButtonCta: n = !1,
|
|
31
|
+
hasLinkCta: i = !1,
|
|
32
|
+
ctaText: o = "",
|
|
33
|
+
hasBadge: x = !1,
|
|
34
|
+
badgeText: w = "",
|
|
35
|
+
buttonBgColor: u = "secondary",
|
|
36
|
+
onCtaClick: b,
|
|
37
|
+
onWidgetClick: v,
|
|
38
|
+
webinarDateInfo: c,
|
|
39
|
+
webinarSpeaker: s
|
|
40
|
+
}) => {
|
|
41
|
+
const E = x && /* @__PURE__ */ e.createElement(I, {
|
|
42
|
+
label: w,
|
|
43
|
+
className: t.widgetBadge,
|
|
44
|
+
bgColor: "var(--color-yellow-50)",
|
|
45
|
+
textColor: "var(--color-yellow-400)",
|
|
46
|
+
fontWeight: "normal"
|
|
47
|
+
}), m = (i || n) && /* @__PURE__ */ e.createElement(e.Fragment, null, i && /* @__PURE__ */ e.createElement("span", {
|
|
48
|
+
className: t.widgetLinkCta
|
|
49
|
+
}, o), n && /* @__PURE__ */ e.createElement(N, {
|
|
50
|
+
type: u,
|
|
51
|
+
size: "md",
|
|
52
|
+
label: o,
|
|
53
|
+
className: `${t.widgetButtonCta} mt-[4px]`,
|
|
54
|
+
onClick: b
|
|
55
|
+
})), C = f && /* @__PURE__ */ e.createElement("div", {
|
|
56
|
+
className: `${t.widgetImageCtn} widget-image-ctn`
|
|
57
|
+
}, /* @__PURE__ */ e.createElement("img", {
|
|
58
|
+
src: p,
|
|
59
|
+
alt: "widget-image"
|
|
60
|
+
}));
|
|
61
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
62
|
+
className: `${t.widgetCtn} ${g} widget-ctn`,
|
|
63
|
+
onClick: v
|
|
64
|
+
}, a !== "general" && C, /* @__PURE__ */ e.createElement("div", {
|
|
65
|
+
className: t.descriptionCtn
|
|
66
|
+
}, a !== "general" && E, a !== "request-feature" && /* @__PURE__ */ e.createElement("span", {
|
|
67
|
+
className: `${t.widgetTitle} widget-title`
|
|
68
|
+
}, r), ["promotion", "general"].includes(a) && /* @__PURE__ */ e.createElement("span", {
|
|
69
|
+
className: `${t.widgetDescription} widget-description`
|
|
70
|
+
}, l), a === "webinar" && /* @__PURE__ */ e.createElement("div", {
|
|
71
|
+
className: t.webinarInfoCtn
|
|
72
|
+
}, s && /* @__PURE__ */ e.createElement("div", {
|
|
73
|
+
className: `${t.webinarDescriptionInfo} align-baseline`
|
|
74
|
+
}, /* @__PURE__ */ e.createElement(d, {
|
|
75
|
+
name: "people",
|
|
76
|
+
className: "relative top-[2px]"
|
|
77
|
+
}), /* @__PURE__ */ e.createElement("span", {
|
|
78
|
+
className: t.webinarSpeaker
|
|
79
|
+
}, s)), c && /* @__PURE__ */ e.createElement("div", {
|
|
80
|
+
className: `${t.webinarTimeInfo} align-baseline mb-[4px]`
|
|
81
|
+
}, /* @__PURE__ */ e.createElement(d, {
|
|
82
|
+
name: "clock",
|
|
83
|
+
className: "relative top-[2px]"
|
|
84
|
+
}), /* @__PURE__ */ e.createElement("span", {
|
|
85
|
+
className: t.webinarDate
|
|
86
|
+
}, c))), a === "request-feature" ? /* @__PURE__ */ e.createElement("div", {
|
|
87
|
+
className: t.requestFeatureCtn
|
|
88
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
89
|
+
className: t.requestFeatureImageCtn
|
|
90
|
+
}), /* @__PURE__ */ e.createElement("div", {
|
|
91
|
+
className: t.requestFeatureDescriptionCtn
|
|
92
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
93
|
+
className: `${t.widgetTitle} widget-title`
|
|
94
|
+
}, r), /* @__PURE__ */ e.createElement("span", {
|
|
95
|
+
className: `${t.widgetDescription} widget-description`
|
|
96
|
+
}, l), m)) : m));
|
|
97
|
+
};
|
|
32
98
|
export {
|
|
33
|
-
|
|
99
|
+
B as Widget,
|
|
100
|
+
B as default
|
|
34
101
|
};
|
|
35
102
|
//# sourceMappingURL=index32.js.map
|
package/dist/index32.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index32.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index32.js","sources":["../src/components/Widget/index.tsx"],"sourcesContent":["import React, { FC } from \"react\";\nimport { Map } from \"../../utils/common.types\";\nimport { Button } from \"../Button\";\nimport { Badge } from \"../Badge\";\nimport { Icon } from \"../Icon\";\nimport \"./style.scss\";\n\nexport interface WidgetProps {\n widgetClassName?: string;\n widgetType?: \"promotion\" | \"webinar\" | \"request-feature\" | \"general\";\n widgetTitle?: string;\n hasBadge?: boolean;\n webinarSpeaker?: string;\n badgeText?: string;\n widgetDescription?: string;\n webinarDateInfo?: string;\n hasImage?: boolean;\n widgetImage?: string;\n hasButtonCta?: boolean;\n buttonBgColor?: 'primary' | 'secondary';\n hasLinkCta?: boolean;\n ctaText?: string;\n onCtaClick?: () => void;\n onWidgetClick?: () => void;\n}\n\nconst className: Map = {\n widgetCtn: 'flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px] w-[385px]',\n widgetImageCtn: 'cursor-pointer',\n descriptionCtn: 'p-4 flex flex-col',\n widgetTitle: 'text-[var(--color-gray-900)] mt-[4px] mb-[8px]',\n widgetDescription: 'text-[var(--color-gray-700)] mb-[4px]',\n widgetLinkCta: 'text-[var(--color-blue-500)] cursor-pointer hover:text-[var(--color-blue-600)]',\n widgetButtonCta: 'self-start',\n widgetBadge: 'w-fit',\n webinarInfoCtn: 'flex flex-col gap-2',\n webinarSpeaker: 'text-[var(--color-gray-700)]',\n webinarDate: 'text-[var(--color-gray-700)]',\n webinarDescriptionInfo: 'flex gap-2',\n webinarTimeInfo: 'flex gap-2',\n requestFeatureCtn: 'flex gap-[12px]',\n requestFeatureImageCtn: 'w-[48px] h-[48px] border border-[var(--color-gray-200)] rounded-[50%] flex items-center flex-shrink-0 bg-[var(--color-red-50)]',\n requestFeatureDescriptionCtn: 'flex flex-col',\n};\n\nexport const Widget: FC<WidgetProps> = ({\n widgetClassName = \"\",\n widgetType = 'general',\n widgetTitle = \"\",\n widgetDescription = \"\",\n widgetImage,\n hasImage = false,\n hasButtonCta = false,\n hasLinkCta = false,\n ctaText = \"\",\n hasBadge = false,\n badgeText = \"\",\n buttonBgColor = 'secondary',\n onCtaClick,\n onWidgetClick,\n webinarDateInfo,\n webinarSpeaker,\n}) => {\n\n const renderBadge = hasBadge && (\n <Badge\n label={badgeText}\n className={className.widgetBadge}\n bgColor=\"var(--color-yellow-50)\"\n textColor=\"var(--color-yellow-400)\"\n fontWeight=\"normal\"\n />\n );\n\n const renderCTA = (hasLinkCta || hasButtonCta) && (\n <React.Fragment>\n {hasLinkCta && <span className={className.widgetLinkCta}>{ctaText}</span>}\n {hasButtonCta && <Button type={buttonBgColor} size=\"md\" label={ctaText} className={`${className.widgetButtonCta} mt-[4px]`} onClick={onCtaClick} />}\n </React.Fragment>\n );\n\n const renderImage = hasImage && (\n <div className={`${className.widgetImageCtn} widget-image-ctn`}>\n <img src={widgetImage} alt=\"widget-image\"/>\n </div>\n );\n\n return (\n <div className={`${className.widgetCtn} ${widgetClassName} widget-ctn`} onClick={onWidgetClick}>\n {widgetType !== \"general\" && renderImage}\n <div className={className.descriptionCtn}>\n {widgetType !== \"general\" && renderBadge}\n {widgetType !== \"request-feature\" && <span className={`${className.widgetTitle} widget-title`}>{widgetTitle}</span>}\n\n {([\"promotion\", \"general\"].includes(widgetType)) && (\n <span className={`${className.widgetDescription} widget-description`}>{widgetDescription}</span>\n )}\n\n {widgetType === \"webinar\" && (\n <div className={className.webinarInfoCtn}>\n {webinarSpeaker && (\n <div className={`${className.webinarDescriptionInfo} align-baseline`}>\n <Icon name=\"people\" className=\"relative top-[2px]\" />\n <span className={className.webinarSpeaker}>{webinarSpeaker}</span>\n </div>\n )}\n {webinarDateInfo && (\n <div className={`${className.webinarTimeInfo} align-baseline mb-[4px]`}>\n <Icon name=\"clock\" className=\"relative top-[2px]\" />\n <span className={className.webinarDate}>{webinarDateInfo}</span>\n </div>\n )}\n </div>\n )}\n\n {widgetType === \"request-feature\" ? (\n <div className={className.requestFeatureCtn}>\n <div className={className.requestFeatureImageCtn} />\n <div className={className.requestFeatureDescriptionCtn}>\n <span className={`${className.widgetTitle} widget-title`}>{widgetTitle}</span>\n <span className={`${className.widgetDescription} widget-description`}>{widgetDescription}</span>\n {renderCTA}\n </div>\n </div>\n ) : (\n renderCTA\n )}\n </div>\n </div>\n );\n};\n\nexport default Widget;"],"names":["React__default","Button","Badge","Icon","className","widgetCtn","widgetImageCtn","descriptionCtn","widgetTitle","widgetDescription","widgetLinkCta","widgetButtonCta","widgetBadge","webinarInfoCtn","webinarSpeaker","webinarDate","webinarDescriptionInfo","webinarTimeInfo","requestFeatureCtn","requestFeatureImageCtn","requestFeatureDescriptionCtn","Widget","widgetClassName","widgetType","widgetImage","hasImage","hasButtonCta","hasLinkCta","ctaText","hasBadge","badgeText","buttonBgColor","onCtaClick","onWidgetClick","webinarDateInfo","renderBadge","React","createElement","label","bgColor","textColor","fontWeight","renderCTA","Fragment","type","size","onClick","renderImage","src","alt","includes","name"],"mappings":"AA0BA,OAAAA,OAAA;AAAA,SAAA,UAAAC,SAAA;AAAA,SAAA,SAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,OAAA;AAAA,MAAMC,IAAiB;AAAA,EACrBC,WAAW;AAAA,EACXC,gBAAgB;AAAA,EAChBC,gBAAgB;AAAA,EAChBC,aAAa;AAAA,EACbC,mBAAmB;AAAA,EACnBC,eAAe;AAAA,EACfC,iBAAiB;AAAA,EACjBC,aAAa;AAAA,EACbC,gBAAgB;AAAA,EAChBC,gBAAgB;AAAA,EAChBC,aAAa;AAAA,EACbC,wBAAwB;AAAA,EACxBC,iBAAiB;AAAA,EACjBC,mBAAmB;AAAA,EACnBC,wBAAwB;AAAA,EACxBC,8BAA8B;AAChC,GAEaC,IAA0BA,CAAC;AAAA,EACtCC,iBAAAA,IAAkB;AAAA,EAClBC,YAAAA,IAAa;AAAA,EACbf,aAAAA,IAAc;AAAA,EACdC,mBAAAA,IAAoB;AAAA,EACpBe,aAAAA;AAAAA,EACAC,UAAAA,IAAW;AAAA,E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A,GACxBgB,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IAAMjC,WAAW,GAAGA,EAAUI,WAAW;AAAA,EAAA,GAAkBA,CAAkB,GAC7E4B,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IAAMjC,WAAW,GAAGA,EAAUK,iBAAiB;AAAA,EAAA,GAAwBA,CAAwB,GAC9FiC,CACE,CACF,IAELA,CAEC,CACF;AAET;"}
|
package/dist/index33.js
CHANGED
|
@@ -1,40 +1,79 @@
|
|
|
1
|
-
import e, {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import e, { useRef as y } from "react";
|
|
2
|
+
import { useStableId as N } from "./index205.js";
|
|
3
|
+
function I(a) {
|
|
4
|
+
const {
|
|
5
|
+
label: s,
|
|
6
|
+
value: n,
|
|
7
|
+
checked: l,
|
|
8
|
+
disabled: t,
|
|
9
|
+
name: i,
|
|
10
|
+
onChange: u,
|
|
11
|
+
width: m,
|
|
12
|
+
radioLabelClassName: f = "",
|
|
13
|
+
radioContainerClassName: p = "",
|
|
14
|
+
automationId: h = "",
|
|
15
|
+
bgColor: b = "var(--color-white)",
|
|
16
|
+
withBorder: x = !0,
|
|
17
|
+
content: c,
|
|
18
|
+
ariaControls: C
|
|
19
|
+
} = a, o = y(null), d = N(void 0, `${i}-${n}`);
|
|
20
|
+
e.useLayoutEffect(() => {
|
|
21
|
+
o.current && (o.current.checked = l);
|
|
22
|
+
}, [l]);
|
|
23
|
+
const g = () => {
|
|
24
|
+
t || (o.current?.focus(), o.current?.click());
|
|
25
|
+
}, k = (r) => {
|
|
26
|
+
r.stopPropagation();
|
|
27
|
+
}, w = (r) => {
|
|
28
|
+
r.stopPropagation();
|
|
29
|
+
}, v = () => {
|
|
30
|
+
u?.({
|
|
31
|
+
...a,
|
|
32
|
+
checked: !0
|
|
33
|
+
});
|
|
34
|
+
}, $ = l ? "border-[var(--color-blue-500)]" : "border-[var(--color-gray-400)]";
|
|
35
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
36
|
+
className: `se-design-radio-container flex flex-col justify-center items-start gap-2 ${t ? "cursor-not-allowed" : "cursor-pointer"} ${x ? `border ${$} p-4` : ""} rounded-[6px] transition-colors duration-300 ${t ? "opacity-50" : ""} ${p}`,
|
|
37
|
+
onClick: g,
|
|
38
|
+
style: {
|
|
39
|
+
width: m || "auto",
|
|
40
|
+
backgroundColor: b
|
|
41
|
+
},
|
|
42
|
+
"data-automation-id": h
|
|
19
43
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
20
|
-
className:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
44
|
+
className: "flex items-center gap-[0.625rem]",
|
|
45
|
+
"data-automation-id": "radio-field-content"
|
|
46
|
+
}, /* @__PURE__ */ e.createElement("input", {
|
|
47
|
+
ref: o,
|
|
48
|
+
type: "radio",
|
|
49
|
+
id: d,
|
|
50
|
+
name: i,
|
|
51
|
+
value: n,
|
|
52
|
+
disabled: t,
|
|
53
|
+
className: "radio-field-input cursor-pointer accent-[var(--color-blue-500)] disabled:cursor-not-allowed disabled:opacity-50 text-[var(--color-blue-500)] w-[14px] h-[14px] p-[3px]",
|
|
54
|
+
"aria-controls": C,
|
|
55
|
+
onClick: w,
|
|
56
|
+
onChange: v
|
|
57
|
+
}), /* @__PURE__ */ e.createElement("label", {
|
|
58
|
+
htmlFor: d,
|
|
59
|
+
className: `${a.helperLabel ? "flex flex-col gap-[6px] " : ""}${t ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
60
|
+
"data-automation-id": "radio-field-label",
|
|
61
|
+
onClick: k
|
|
62
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
63
|
+
className: `text-sm text-[var(--color-gray-800)] ${f} `,
|
|
64
|
+
style: {
|
|
65
|
+
fontSize: "16px",
|
|
66
|
+
fontWeight: "400"
|
|
67
|
+
}
|
|
68
|
+
}, s))), l && c && /* @__PURE__ */ e.createElement("div", {
|
|
69
|
+
className: "radio-child-content pl-[1.5rem] w-full",
|
|
70
|
+
onClick: (r) => r.stopPropagation()
|
|
71
|
+
}, c()), a.helperLabel && /* @__PURE__ */ e.createElement("span", {
|
|
72
|
+
className: `text-sm font-normal text-[var(--color-gray-600)] ${a.maxWidth ? `max-w-[${a.maxWidth}]` : "max-w-full"} break-words whitespace-normal`,
|
|
73
|
+
"data-automation-id": "radio-field-helper-text"
|
|
74
|
+
}, a.helperLabel));
|
|
75
|
+
}
|
|
37
76
|
export {
|
|
38
|
-
|
|
77
|
+
I as Radio
|
|
39
78
|
};
|
|
40
79
|
//# sourceMappingURL=index33.js.map
|
package/dist/index33.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index33.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index33.js","sources":["../src/components/Radio/index.tsx"],"sourcesContent":["import React, { useRef } from 'react';\nimport { useStableId } from '../../utils/useStableId';\n\nexport interface RadioProps {\n label: string;\n value: string;\n checked: boolean;\n disabled: boolean;\n name: string;\n onChange?: (props: RadioProps) => void;\n helperLabel?: string;\n maxWidth?: string;\n width?: string;\n radioLabelClassName?: string;\n radioContainerClassName?: string;\n automationId?: string;\n withBorder?: boolean;\n bgColor?: string;\n content?: () => React.ReactNode;\n /**\n * ID of the element controlled by this radio (e.g. an expandable content region).\n */\n ariaControls?: string;\n}\n\nexport function Radio(props: RadioProps) {\n const {\n label,\n value,\n checked,\n disabled,\n name,\n onChange,\n width,\n radioLabelClassName = '',\n radioContainerClassName = '',\n automationId = '',\n bgColor = 'var(--color-white)',\n withBorder = true,\n content,\n ariaControls\n } = props;\n const radioRef = useRef<HTMLInputElement>(null);\n const inputId = useStableId(undefined, `${name}-${value}`);\n\n // Sync DOM checked state with prop — bypasses React's controlled-input restore mechanism\n // which resets DOM.checked=false after the first click on an unselected radio.\n React.useLayoutEffect(() => {\n if (radioRef.current) {\n radioRef.current.checked = checked;\n }\n }, [checked]);\n\n const handleContainerClick = () => {\n if (!disabled) {\n radioRef.current?.focus();\n radioRef.current?.click();\n }\n };\n\n const handleLabelClick = (e: React.MouseEvent<HTMLLabelElement>) => {\n // Stop label click from bubbling to container (which would double-fire handleContainerClick).\n // No preventDefault — native htmlFor redirect fires a new click on the input, which handles\n // check + focus + onChange via handleInputChange. No manual replication needed.\n e.stopPropagation();\n };\n\n const handleInputClick = (e: React.MouseEvent<HTMLInputElement>) => {\n e.stopPropagation();\n };\n\n const handleInputChange = () => {\n onChange?.({ ...props, checked: true });\n };\n\n const borderColor = checked ? 'border-[var(--color-blue-500)]' : 'border-[var(--color-gray-400)]';\n\n return (\n <div\n className={`se-design-radio-container flex flex-col justify-center items-start gap-2 ${\n disabled ? 'cursor-not-allowed' : 'cursor-pointer'\n } ${\n withBorder ? `border ${borderColor} p-4` : ''\n } rounded-[6px] transition-colors duration-300 ${disabled ? 'opacity-50' : ''} ${radioContainerClassName}`}\n onClick={handleContainerClick}\n style={{ width: width || 'auto', backgroundColor: bgColor }}\n data-automation-id={automationId}\n >\n <div className=\"flex items-center gap-[0.625rem]\" data-automation-id=\"radio-field-content\">\n <input\n ref={radioRef}\n type=\"radio\"\n id={inputId}\n name={name}\n value={value}\n disabled={disabled}\n className=\"radio-field-input cursor-pointer accent-[var(--color-blue-500)] disabled:cursor-not-allowed disabled:opacity-50 text-[var(--color-blue-500)] w-[14px] h-[14px] p-[3px]\"\n aria-controls={ariaControls}\n onClick={handleInputClick}\n onChange={handleInputChange}\n />\n <label\n htmlFor={inputId}\n className={`${props.helperLabel ? 'flex flex-col gap-[6px] ' : ''}${\n disabled ? 'cursor-not-allowed' : 'cursor-pointer'\n }`}\n data-automation-id=\"radio-field-label\"\n onClick={handleLabelClick}\n >\n <span\n className={`text-sm text-[var(--color-gray-800)] ${radioLabelClassName} `}\n style={{ fontSize: '16px', fontWeight: '400' }}\n >\n {label}\n </span>\n </label>\n </div>\n {checked && content && (\n <div className=\"radio-child-content pl-[1.5rem] w-full\" onClick={(e) => e.stopPropagation()}>\n {content()}\n </div>\n )}\n {props.helperLabel && (\n <span\n className={`text-sm font-normal text-[var(--color-gray-600)] ${\n props.maxWidth ? `max-w-[${props.maxWidth}]` : 'max-w-full'\n } break-words whitespace-normal`}\n data-automation-id=\"radio-field-helper-text\"\n >\n {props.helperLabel}\n </span>\n )}\n </div>\n );\n}\n"],"names":["Radio","props","label","value","checked","disabled","name","onChange","width","radioLabelClassName","radioContainerClassName","automationId","bgColor","withBorder","content","ariaControls","radioRef","useRef","inputId","useStableId","undefined","React","useLayoutEffect","current","handleContainerClick","focus","click","handleLabelClick","e","stopPropagation","handleInputClick","handleInputChange","borderColor","createElement","className","onClick","style","backgroundColor","ref","type","id","htmlFor","helperLabel","fontSize","fontWeight","maxWidth"],"mappings":";;AAyBO,SAASA,EAAMC,GAAmB;AACvC,QAAM;AAAA,IACJC,OAAAA;AAAAA,IACAC,OAAAA;AAAAA,IACAC,SAAAA;AAAAA,IACAC,UAAAA;AAAAA,IACAC,MAAAA;AAAAA,IACAC,UAAAA;AAAAA,IACAC,OAAAA;AAAAA,IACAC,qBAAAA,IAAsB;AAAA,IACtBC,yBAAAA,IAA0B;AAAA,IAC1BC,cAAAA,IAAe;AAAA,IACfC,SAAAA,IAAU;AAAA,IACVC,YAAAA,IAAa;AAAA,IACbC,SAAAA;AAAAA,IACAC,cAAAA;AAAAA,EAAAA,IACEd,GACEe,IAAWC,EAAyB,IAAI,GACxCC,IAAUC,EAAYC,QAAW,GAAGd,CAAI,IAAIH,CAAK,EAA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41
|
-
|
|
42
|
-
}, i({
|
|
43
|
-
isOpen: t
|
|
44
|
-
}))));
|
|
45
|
-
};
|
|
1
|
+
import o from "react";
|
|
2
|
+
import { Radio as m } from "./index33.js";
|
|
3
|
+
function l() {
|
|
4
|
+
return l = Object.assign ? Object.assign.bind() : function(e) {
|
|
5
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
6
|
+
var n = arguments[t];
|
|
7
|
+
for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
8
|
+
}
|
|
9
|
+
return e;
|
|
10
|
+
}, l.apply(null, arguments);
|
|
11
|
+
}
|
|
12
|
+
function g(e) {
|
|
13
|
+
const {
|
|
14
|
+
automationId: t = "",
|
|
15
|
+
withBorder: n = !0,
|
|
16
|
+
ariaLabel: a,
|
|
17
|
+
ariaLabelledBy: i,
|
|
18
|
+
name: c
|
|
19
|
+
} = e, u = (r) => {
|
|
20
|
+
e.onRadioGroupChange({
|
|
21
|
+
...r,
|
|
22
|
+
checked: !0
|
|
23
|
+
});
|
|
24
|
+
}, d = i ? {
|
|
25
|
+
"aria-labelledby": i
|
|
26
|
+
} : a ? {
|
|
27
|
+
"aria-label": a
|
|
28
|
+
} : {};
|
|
29
|
+
return /* @__PURE__ */ o.createElement("div", {
|
|
30
|
+
"data-automation-id": t
|
|
31
|
+
}, /* @__PURE__ */ o.createElement("fieldset", l({
|
|
32
|
+
className: `flex flex-wrap gap-2 ${e.direction === "column" ? "flex-col" : "flex-row"}`
|
|
33
|
+
}, d), e.options.map((r) => /* @__PURE__ */ o.createElement(m, l({
|
|
34
|
+
key: r.value
|
|
35
|
+
}, r, {
|
|
36
|
+
name: c,
|
|
37
|
+
onChange: u,
|
|
38
|
+
checked: r.value === e.value,
|
|
39
|
+
withBorder: n
|
|
40
|
+
})))));
|
|
41
|
+
}
|
|
46
42
|
export {
|
|
47
|
-
|
|
43
|
+
g as RadioGroup
|
|
48
44
|
};
|
|
49
45
|
//# sourceMappingURL=index34.js.map
|