@okam/stack-ui 1.37.0 → 1.38.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/CHANGELOG.md +20 -0
- package/components/Accordion/components/AccordionItem.d.ts +0 -1
- package/components/Alerts/components/AlertsCloseButton.d.ts +0 -1
- package/components/Button/index.d.ts +1 -1
- package/components/Button/interface.d.ts +6 -0
- package/components/Carousel/components/CarouselNavigationButton.d.ts +1 -2
- package/components/Dialog/interface.d.ts +5 -3
- package/components/Modal/interface.d.ts +6 -4
- package/components/SidePanel/interface.d.ts +9 -6
- package/components/TabList/components/Tab.d.ts +1 -1
- package/components/TabList/tab-list.stories.d.ts +11 -0
- package/components/fields/CheckboxGroup/components/CheckboxGroupItem/index.d.ts +3 -3
- package/components/fields/DatePicker/components/Wrapper.d.ts +0 -1
- package/components/fields/ListBox/components/ListBoxSection.d.ts +4 -0
- package/components/fields/ListBox/index.d.ts +4 -0
- package/components/fields/ListBox/interface.d.ts +17 -0
- package/components/fields/ListBox/list-box.stories.d.ts +13 -0
- package/components/fields/Option/index.d.ts +4 -0
- package/components/fields/Option/interface.d.ts +15 -0
- package/components/fields/Select/Select.d.ts +2 -2
- package/components/fields/TextArea/index.d.ts +1 -1
- package/components/fields/TextInputField/index.d.ts +1 -1
- package/examples/PageLayout/index.d.ts +2 -0
- package/helpers/mergeDefaultComponentProps.d.ts +1 -1
- package/hooks/useLabelledOverlay/index.d.ts +9 -0
- package/hooks/useLabelledOverlay/interface.d.ts +14 -0
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +72 -70
- package/index100.js +5 -1
- package/index100.mjs +88 -6
- package/index101.js +1 -12
- package/index101.mjs +6 -40
- package/index102.js +12 -1
- package/index102.mjs +36 -25
- package/index103.js +1 -1
- package/index103.mjs +85 -9
- package/index104.js +1 -7
- package/index104.mjs +23 -13
- package/index105.js +1 -15
- package/index105.mjs +9 -67
- package/index106.js +7 -1
- package/index106.mjs +17 -5
- package/index107.js +13 -39
- package/index107.mjs +54 -89
- package/index108.js +1 -47
- package/index108.mjs +5 -100
- package/index109.js +40 -15
- package/index109.mjs +100 -19
- package/index11.js +1 -1
- package/index11.mjs +2 -2
- package/index110.js +47 -1
- package/index110.mjs +95 -35
- package/index111.js +16 -1
- package/index111.mjs +25 -48
- package/index112.js +1 -1
- package/index112.mjs +41 -22
- package/index113.js +1 -2
- package/index113.mjs +47 -21
- package/index114.js +1 -1
- package/index114.mjs +21 -61
- package/index115.js +1 -1
- package/index115.mjs +58 -24
- package/index116.js +1 -1
- package/index116.mjs +29 -52
- package/index117.js +1 -1
- package/index117.mjs +52 -4
- package/index118.js +1 -1
- package/index118.mjs +4 -11
- package/index119.js +1 -1
- package/index119.mjs +11 -14
- package/index120.js +1 -1
- package/index120.mjs +13 -37
- package/index121.js +1 -1
- package/index121.mjs +35 -20
- package/index122.js +1 -1
- package/index122.mjs +22 -43
- package/index123.js +1 -1
- package/index123.mjs +42 -18
- package/index124.js +1 -1
- package/index124.mjs +18 -36
- package/index125.js +1 -1
- package/index125.mjs +35 -13
- package/index126.js +1 -1
- package/index126.mjs +13 -238
- package/index127.js +1 -2
- package/index127.mjs +240 -12
- package/index128.js +1 -1
- package/index128.mjs +12 -38
- package/index129.js +2 -1
- package/index129.mjs +38 -10
- package/index13.js +1 -1
- package/index13.mjs +1 -1
- package/index130.js +1 -1
- package/index130.mjs +11 -39
- package/index131.js +1 -1
- package/index131.mjs +38 -8
- package/index132.js +1 -1
- package/index132.mjs +22 -21
- package/index133.js +1 -1
- package/index133.mjs +21 -41
- package/index134.js +1 -1
- package/index134.mjs +42 -25
- package/index135.js +1 -1
- package/index135.mjs +25 -40
- package/index136.js +1 -2
- package/index136.mjs +39 -56
- package/index137.js +2 -1
- package/index137.mjs +57 -38
- package/index138.js +1 -1
- package/index138.mjs +34 -26
- package/index139.js +1 -1
- package/index139.mjs +29 -18
- package/index14.js +1 -1
- package/index14.mjs +3 -3
- package/index140.js +1 -1
- package/index140.mjs +7 -8
- package/index141.js +1 -1
- package/index141.mjs +9 -30
- package/index142.js +1 -1
- package/index142.mjs +30 -15
- package/index143.js +1 -1
- package/index143.mjs +13 -15
- package/index144.js +1 -2
- package/index144.mjs +16 -47
- package/index145.js +2 -1
- package/index145.mjs +46 -36
- package/index146.js +1 -1
- package/index146.mjs +36 -27
- package/index147.js +1 -1
- package/index147.mjs +27 -20
- package/index148.js +1 -1
- package/index148.mjs +18 -32
- package/index149.js +1 -2
- package/index149.mjs +35 -21
- package/index150.js +1 -1
- package/index150.mjs +54 -18
- package/index151.js +1 -1
- package/index151.mjs +11 -5
- package/index152.js +1 -1
- package/index152.mjs +23 -23
- package/index153.js +1 -1
- package/index153.mjs +1 -1
- package/index155.js +1 -1
- package/index155.mjs +10 -55
- package/index156.js +1 -1
- package/index156.mjs +6 -12
- package/index157.js +2 -1
- package/index157.mjs +49 -11
- package/index158.js +1 -1
- package/index158.mjs +125 -5
- package/index159.js +1 -2
- package/index159.mjs +27 -49
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +66 -118
- package/index161.js +1 -1
- package/index161.mjs +370 -62
- package/index162.js +1 -1
- package/index162.mjs +44 -379
- package/index163.js +1 -1
- package/index163.mjs +4 -47
- package/index164.js +1 -1
- package/index164.mjs +25 -4
- package/index165.js +1 -1
- package/index165.mjs +46 -23
- package/index166.js +1 -1
- package/index166.mjs +4 -46
- package/index167.js +1 -1
- package/index167.mjs +24 -5
- package/index168.js +1 -1
- package/index168.mjs +11 -23
- package/index169.js +1 -1
- package/index169.mjs +4 -12
- package/index17.js +1 -1
- package/index17.mjs +4 -4
- package/index170.js +1 -1
- package/index170.mjs +14 -4
- package/index171.js +1 -1
- package/index171.mjs +21 -14
- package/index172.js +1 -1
- package/index172.mjs +42 -21
- package/index173.js +1 -1
- package/index173.mjs +52 -37
- package/index174.js +1 -1
- package/index174.mjs +39 -55
- package/index175.js +1 -1
- package/index175.mjs +27 -40
- package/index176.js +1 -1
- package/index176.mjs +30 -27
- package/index177.js +1 -1
- package/index177.mjs +13 -30
- package/index178.js +1 -1
- package/index178.mjs +10 -14
- package/index179.js +1 -1
- package/index179.mjs +28 -10
- package/index18.js +1 -1
- package/index18.mjs +6 -6
- package/index180.js +1 -1
- package/index180.mjs +9 -28
- package/index181.js +1 -1
- package/index181.mjs +6 -9
- package/index182.js +1 -1
- package/index182.mjs +5 -6
- package/index183.js +1 -1
- package/index183.mjs +7 -5
- package/index184.js +1 -1
- package/index184.mjs +29 -7
- package/index185.js +1 -1
- package/index185.mjs +16 -27
- package/index186.js +1 -1
- package/index186.mjs +12 -17
- package/index187.js +1 -1
- package/index187.mjs +43 -13
- package/index188.js +1 -1
- package/index188.mjs +7 -42
- package/index189.js +1 -1
- package/index189.mjs +17 -8
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +3 -18
- package/index191.js +1 -1
- package/index191.mjs +5 -3
- package/index192.js +1 -1
- package/index192.mjs +19 -4
- package/index193.js +1 -1
- package/index193.mjs +54 -19
- package/index194.js +1 -1
- package/index194.mjs +198 -49
- package/index195.js +1 -1
- package/index195.mjs +64 -27
- package/index196.js +1 -1
- package/index196.mjs +142 -123
- package/index197.js +1 -1
- package/index197.mjs +120 -130
- package/index198.js +1 -1
- package/index198.mjs +224 -44
- package/index199.js +1 -1
- package/index199.mjs +190 -14
- package/index2.js +1 -1
- package/index2.mjs +49 -47
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +69 -95
- package/index201.js +1 -1
- package/index201.mjs +277 -104
- package/index202.js +1 -1
- package/index202.mjs +98 -4
- package/index203.js +1 -1
- package/index203.mjs +188 -3
- package/index204.js +1 -1
- package/index204.mjs +82 -123
- package/index205.js +1 -1
- package/index205.mjs +58 -29
- package/index206.js +1 -1
- package/index206.mjs +125 -50
- package/index207.js +1 -1
- package/index207.mjs +113 -41
- package/index208.js +1 -1
- package/index208.mjs +118 -33
- package/index209.js +1 -1
- package/index209.mjs +69 -110
- package/index210.js +1 -1
- package/index210.mjs +105 -72
- package/index211.js +1 -1
- package/index211.mjs +52 -101
- package/index212.js +1 -1
- package/index212.mjs +94 -98
- package/index213.js +1 -1
- package/index213.mjs +65 -135
- package/index214.js +1 -1
- package/index214.mjs +56 -197
- package/index215.js +1 -1
- package/index215.mjs +99 -22
- package/index216.js +5 -1
- package/index216.mjs +78 -47
- package/index217.js +1 -1
- package/index217.mjs +2019 -42
- package/index218.js +1 -1
- package/index218.mjs +54 -92
- package/index219.js +1 -1
- package/index219.mjs +189 -72
- package/index220.js +1 -1
- package/index220.mjs +133 -61
- package/index221.js +1 -1
- package/index221.mjs +197 -7
- package/index222.js +1 -1
- package/index222.mjs +22 -11
- package/index223.js +1 -1
- package/index223.mjs +46 -200
- package/index224.js +1 -1
- package/index224.mjs +45 -61
- package/index225.js +1 -1
- package/index225.mjs +93 -139
- package/index226.js +1 -1
- package/index226.mjs +72 -125
- package/index227.js +1 -1
- package/index227.mjs +62 -218
- package/index228.js +1 -1
- package/index228.mjs +7 -190
- package/index229.js +1 -1
- package/index229.mjs +11 -69
- package/index23.js +1 -1
- package/index23.mjs +2 -2
- package/index230.js +1 -1
- package/index230.mjs +116 -271
- package/index231.js +1 -1
- package/index231.mjs +129 -93
- package/index232.js +1 -1
- package/index232.mjs +44 -188
- package/index233.js +1 -1
- package/index233.mjs +14 -84
- package/index234.js +1 -1
- package/index234.mjs +95 -58
- package/index235.js +1 -1
- package/index235.mjs +105 -125
- package/index236.js +1 -1
- package/index236.mjs +4 -116
- package/index237.js +1 -1
- package/index237.mjs +3 -122
- package/index238.js +1 -1
- package/index238.mjs +123 -70
- package/index239.js +1 -1
- package/index239.mjs +25 -106
- package/index24.js +1 -1
- package/index24.mjs +3 -3
- package/index240.js +1 -1
- package/index240.mjs +51 -52
- package/index241.js +1 -1
- package/index241.mjs +44 -93
- package/index242.js +1 -1
- package/index242.mjs +36 -69
- package/index243.js +1 -1
- package/index243.mjs +111 -54
- package/index244.js +1 -1
- package/index244.mjs +77 -99
- package/index245.js +1 -5
- package/index245.mjs +101 -80
- package/index246.js +1 -1
- package/index246.mjs +97 -2025
- package/index247.js +1 -1
- package/index247.mjs +5 -59
- package/index248.js +1 -1
- package/index248.mjs +118 -185
- package/index249.js +1 -1
- package/index249.mjs +43 -5
- package/index25.js +1 -1
- package/index25.mjs +1 -1
- package/index250.js +1 -1
- package/index250.mjs +220 -111
- package/index251.js +1 -1
- package/index251.mjs +31 -43
- package/index252.js +1 -1
- package/index252.mjs +3 -230
- package/index253.js +1 -1
- package/index253.mjs +129 -30
- package/index254.js +1 -1
- package/index254.mjs +190 -3
- package/index255.js +1 -1
- package/index255.mjs +9 -4
- package/index256.js +1 -1
- package/index256.mjs +4 -5
- package/index257.js +1 -1
- package/index257.mjs +37 -5
- package/index258.js +1 -1
- package/index258.mjs +6 -5
- package/index259.js +1 -1
- package/index259.mjs +30 -5
- package/index26.js +1 -1
- package/index26.mjs +2 -2
- package/index260.js +1 -1
- package/index260.mjs +7 -5
- package/index261.js +1 -1
- package/index261.mjs +1 -1
- package/index262.js +1 -1
- package/index262.mjs +4 -4
- package/index263.js +1 -1
- package/index263.mjs +4 -4
- package/index264.js +1 -1
- package/index264.mjs +4 -4
- package/index265.js +1 -1
- package/index265.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +4 -4
- package/index268.js +1 -1
- package/index268.mjs +1 -1
- package/index269.js +1 -1
- package/index269.mjs +4 -4
- package/index270.js +1 -1
- package/index270.mjs +4 -4
- package/index271.js +1 -1
- package/index271.mjs +4 -4
- package/index272.js +1 -1
- package/index272.mjs +4 -4
- package/index273.js +1 -1
- package/index273.mjs +1 -1
- package/index274.js +1 -1
- package/index274.mjs +4 -4
- package/index275.js +1 -1
- package/index275.mjs +1 -1
- package/index276.js +1 -1
- package/index276.mjs +4 -4
- package/index277.js +1 -1
- package/index277.mjs +4 -4
- package/index278.js +1 -1
- package/index278.mjs +4 -4
- package/index279.js +1 -1
- package/index279.mjs +4 -4
- package/index28.js +1 -1
- package/index28.mjs +3 -3
- package/index280.js +1 -1
- package/index280.mjs +4 -4
- package/index281.js +1 -1
- package/index281.mjs +4 -4
- package/index282.js +1 -1
- package/index282.mjs +4 -4
- package/index283.js +1 -1
- package/index283.mjs +4 -4
- package/index284.js +1 -1
- package/index284.mjs +1 -1
- package/index285.js +1 -1
- package/index285.mjs +4 -4
- package/index286.js +1 -1
- package/index286.mjs +4 -4
- package/index287.js +1 -1
- package/index287.mjs +4 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index289.js +1 -1
- package/index289.mjs +1 -1
- package/index29.js +1 -1
- package/index29.mjs +3 -3
- package/index290.js +1 -1
- package/index290.mjs +4 -130
- package/index291.js +1 -1
- package/index291.mjs +5 -191
- package/index292.js +1 -1
- package/index292.mjs +5 -10
- package/index293.js +1 -1
- package/index293.mjs +5 -4
- package/index294.js +1 -1
- package/index294.mjs +5 -37
- package/index295.js +1 -1
- package/index295.mjs +4 -5
- package/index296.js +1 -1
- package/index296.mjs +62 -29
- package/index297.js +1 -1
- package/index297.mjs +7 -7
- package/index298.js +1 -1
- package/index298.mjs +27 -62
- package/index299.js +1 -1
- package/index299.mjs +93 -7
- package/index30.js +1 -1
- package/index30.mjs +15 -12
- package/index300.js +1 -1
- package/index300.mjs +6 -24
- package/index301.js +1 -1
- package/index301.mjs +23 -90
- package/index302.js +1 -1
- package/index302.mjs +32 -8
- package/index303.js +1 -1
- package/index303.mjs +6 -25
- package/index304.js +1 -1
- package/index304.mjs +6 -33
- package/index305.js +1 -1
- package/index305.mjs +50 -6
- package/index306.js +1 -1
- package/index306.mjs +29 -6
- package/index307.js +1 -1
- package/index307.mjs +14 -50
- package/index308.js +1 -1
- package/index308.mjs +20 -28
- package/index309.js +1 -1
- package/index309.mjs +29 -14
- package/index310.js +1 -1
- package/index310.mjs +65 -20
- package/index311.js +1 -1
- package/index311.mjs +53 -29
- package/index312.js +1 -1
- package/index312.mjs +51 -63
- package/index313.js +1 -1
- package/index313.mjs +271 -43
- package/index314.js +1 -1
- package/index314.mjs +18 -52
- package/index315.js +1 -1
- package/index315.mjs +3 -281
- package/index316.js +1 -1
- package/index316.mjs +4 -20
- package/index317.js +1 -1
- package/index317.mjs +8 -3
- package/index318.js +1 -1
- package/index318.mjs +5 -4
- package/index319.js +1 -1
- package/index319.mjs +30 -8
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index320.js +1 -1
- package/index320.mjs +166 -4
- package/index34.js +1 -1
- package/index34.mjs +2 -2
- package/index35.js +1 -1
- package/index35.mjs +20 -20
- package/index38.js +1 -1
- package/index38.mjs +14 -14
- package/index4.js +1 -1
- package/index4.mjs +1 -1
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index43.js +1 -1
- package/index43.mjs +1 -1
- package/index44.js +1 -1
- package/index44.mjs +3 -3
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index46.js +1 -1
- package/index46.mjs +2 -2
- package/index47.js +1 -1
- package/index47.mjs +1 -1
- package/index6.mjs +30 -32
- package/index74.js +1 -1
- package/index74.mjs +1 -1
- package/index75.js +1 -1
- package/index75.mjs +34 -29
- package/index76.js +1 -1
- package/index76.mjs +1 -1
- package/index78.js +1 -1
- package/index78.mjs +1 -1
- package/index79.js +1 -1
- package/index79.mjs +1 -1
- package/index8.js +1 -1
- package/index8.mjs +45 -34
- package/index80.js +1 -1
- package/index80.mjs +1 -1
- package/index81.js +1 -1
- package/index81.mjs +2 -2
- package/index88.js +1 -1
- package/index88.mjs +9 -6
- package/index89.js +2 -1
- package/index89.mjs +20 -5
- package/index9.js +1 -1
- package/index9.mjs +21 -21
- package/index90.js +1 -1
- package/index90.mjs +4 -2
- package/index91.js +1 -6
- package/index91.mjs +2 -94
- package/index92.js +6 -1
- package/index92.mjs +79 -54
- package/index93.js +1 -1
- package/index93.mjs +61 -33
- package/index94.js +1 -42
- package/index94.mjs +34 -67
- package/index95.js +38 -60
- package/index95.mjs +65 -219
- package/index96.js +63 -8
- package/index96.mjs +215 -44
- package/index97.js +9 -1
- package/index97.mjs +48 -36
- package/index98.js +1 -1
- package/index98.mjs +40 -8
- package/index99.js +1 -5
- package/index99.mjs +10 -85
- package/logger.d.ts +1 -1
- package/message.d.ts +7 -0
- package/package.json +1 -1
- package/providers/Accordion/index.d.ts +0 -1
- package/providers/Menu/index.d.ts +0 -1
- package/providers/SidePanel/interface.d.ts +13 -4
- package/providers/Swiper/index.d.ts +0 -1
- package/providers/Translation/index.d.ts +0 -1
- package/providers/Translation/interface.d.ts +0 -1
- package/providers/UserSearchQuery/index.d.ts +0 -1
- package/storybook/Lightbox/LightboxControlledState.d.ts +3 -0
- package/storybook/Menu/Menu.d.ts +34 -0
- package/storybook/Menu/NestedMenu.d.ts +2 -0
- package/storybook/Menu/mock.d.ts +2 -0
- package/storybook/SelectField/index.d.ts +3 -0
- package/storybook/ShareButtonExample/index.d.ts +3 -0
- package/theme/Accordion/index.d.ts +105 -105
- package/theme/Alerts/index.d.ts +558 -558
- package/theme/Box/index.d.ts +103 -103
- package/theme/Button/index.d.ts +70 -70
- package/theme/Calendar/index.d.ts +504 -504
- package/theme/Carousel/index.d.ts +108 -108
- package/theme/Checkbox/index.d.ts +49 -49
- package/theme/CheckboxGroup/index.d.ts +7 -7
- package/theme/DatePicker/index.d.ts +72 -72
- package/theme/LightBox/index.d.ts +180 -180
- package/theme/ListBox/index.d.ts +2885 -0
- package/theme/Radio/index.d.ts +28 -28
- package/theme/RadioGroup/index.d.ts +7 -7
- package/theme/Search/index.d.ts +7 -7
- package/theme/ShareButton/index.d.ts +70 -70
- package/theme/SidePanel/index.d.ts +1 -1
- package/theme/TabList/index.d.ts +400 -400
- package/theme/TagGroup/index.d.ts +568 -568
- package/theme/TextArea/index.d.ts +7 -7
- package/theme/Typography/index.d.ts +140 -140
- package/transitions/AccordionTransition.d.ts +0 -1
- package/transitions/ModalTransition.d.ts +0 -1
- package/transitions/RenderWithOpacity.d.ts +0 -1
- package/transitions/RenderWithSlide.d.ts +0 -1
- package/transitions/SidePanelTransition.d.ts +0 -1
- package/types/next-link.d.ts +0 -2
- package/components/Lightbox/hooks/overlay/index.d.ts +0 -79
- package/index321.js +0 -1
- package/index321.mjs +0 -33
- package/index322.js +0 -1
- package/index322.mjs +0 -170
package/index35.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useMenu as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useMenu as h } from "./index76.mjs";
|
|
4
|
+
import p from "./index8.mjs";
|
|
5
|
+
import P from "./index144.mjs";
|
|
6
|
+
const B = (m) => {
|
|
7
7
|
const {
|
|
8
8
|
id: n = "main-menu",
|
|
9
9
|
children: s,
|
|
10
|
-
TransitionAnimation:
|
|
11
|
-
PanelTransition:
|
|
10
|
+
TransitionAnimation: a,
|
|
11
|
+
PanelTransition: l,
|
|
12
12
|
themeName: t,
|
|
13
13
|
tokens: o,
|
|
14
|
-
customTheme:
|
|
15
|
-
...
|
|
16
|
-
} = m, { closeBtn:
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
14
|
+
customTheme: i,
|
|
15
|
+
...d
|
|
16
|
+
} = m, { closeBtn: c, tabState: e, defaultSelectedKey: u } = h();
|
|
17
|
+
return /* @__PURE__ */ r(
|
|
18
|
+
p,
|
|
19
19
|
{
|
|
20
20
|
themeName: `${t}.sidePanel`,
|
|
21
21
|
tokens: o,
|
|
22
|
-
customTheme:
|
|
23
|
-
closeBtnRender:
|
|
22
|
+
customTheme: i,
|
|
23
|
+
closeBtnRender: c,
|
|
24
24
|
id: n,
|
|
25
|
-
TransitionAnimation:
|
|
26
|
-
PanelTransition:
|
|
27
|
-
|
|
28
|
-
e == null || e.setSelectedKey(u);
|
|
25
|
+
TransitionAnimation: a,
|
|
26
|
+
PanelTransition: l,
|
|
27
|
+
onOpenChange: (f) => {
|
|
28
|
+
f || e == null || e.setSelectedKey(u);
|
|
29
29
|
},
|
|
30
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ r(P, { id: n, themeName: t, tokens: o, customTheme: i, ...d, children: s })
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
B as default
|
|
36
36
|
};
|
package/index38.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),h=require("react"),q=require("react-stately"),d=require("./index89.js"),x=require("./index143.js"),O=require("./index11.js"),y=require("./index130.js"),B=require("./index39.js"),C=e=>{const{themeName:t="alerts",tokens:s,customTheme:R,defaultOpen:i=!0,closeButton:a=y,transitionComponent:l=x,closeButtonAriaLabel:c,isOpen:f,onOpenChange:j,setOpen:A,children:u=B,...m}=e,n=h.useRef(null),o=q.useOverlayTriggerState({...e,defaultOpen:i}),{triggerProps:p,overlayProps:g}=d({...e,type:"dialog"},o,n);return r.jsxs(l,{...g,role:"alert",themeName:`${t}.wrapper`,tokens:s,isVisible:o.isOpen,children:[r.jsx(a,{ref:n,themeName:`${t}.closeBtn`,"aria-label":c,...p}),r.jsx(O,{themeName:t,tokens:s,...m,children:u})]})};module.exports=C;
|
package/index38.mjs
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
import { jsxs as g, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as h } from "react";
|
|
4
4
|
import { useOverlayTriggerState as O } from "react-stately";
|
|
5
|
-
import d from "./
|
|
6
|
-
import C from "./
|
|
7
|
-
import y from "./
|
|
8
|
-
import B from "./
|
|
9
|
-
import
|
|
5
|
+
import d from "./index89.mjs";
|
|
6
|
+
import C from "./index143.mjs";
|
|
7
|
+
import y from "./index11.mjs";
|
|
8
|
+
import B from "./index130.mjs";
|
|
9
|
+
import b from "./index39.mjs";
|
|
10
10
|
const I = (e) => {
|
|
11
11
|
const {
|
|
12
12
|
themeName: t = "alerts",
|
|
13
13
|
tokens: r,
|
|
14
|
-
customTheme:
|
|
15
|
-
defaultOpen:
|
|
16
|
-
closeButton:
|
|
17
|
-
transitionComponent:
|
|
14
|
+
customTheme: A,
|
|
15
|
+
defaultOpen: l = !0,
|
|
16
|
+
closeButton: i = B,
|
|
17
|
+
transitionComponent: m = C,
|
|
18
18
|
closeButtonAriaLabel: a,
|
|
19
19
|
isOpen: v,
|
|
20
20
|
onOpenChange: x,
|
|
21
21
|
setOpen: N,
|
|
22
|
-
children: p =
|
|
22
|
+
children: p = b,
|
|
23
23
|
...u
|
|
24
|
-
} = e, o = h(null), s = O({ ...e, defaultOpen:
|
|
24
|
+
} = e, o = h(null), s = O({ ...e, defaultOpen: l }), { triggerProps: f, overlayProps: c } = d({ ...e, type: "dialog" }, s, o);
|
|
25
25
|
return /* @__PURE__ */ g(
|
|
26
|
-
|
|
26
|
+
m,
|
|
27
27
|
{
|
|
28
28
|
...c,
|
|
29
29
|
role: "alert",
|
|
@@ -32,7 +32,7 @@ const I = (e) => {
|
|
|
32
32
|
isVisible: s.isOpen,
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ n(
|
|
35
|
-
|
|
35
|
+
i,
|
|
36
36
|
{
|
|
37
37
|
ref: o,
|
|
38
38
|
themeName: `${t}.closeBtn`,
|
|
@@ -40,7 +40,7 @@ const I = (e) => {
|
|
|
40
40
|
...f
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
/* @__PURE__ */ n(
|
|
43
|
+
/* @__PURE__ */ n(y, { themeName: t, tokens: r, ...u, children: p })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
);
|
package/index4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("react/jsx-runtime"),d=require("@react-aria/accordion"),m=require("react"),x=require("./index78.js"),q=require("./index27.js"),A=require("./
|
|
2
|
+
"use strict";const r=require("react/jsx-runtime"),d=require("@react-aria/accordion"),m=require("react"),x=require("./index78.js"),q=require("./index27.js"),A=require("./index113.js"),h=require("./index87.js"),l=e=>{const{themeName:c="accordion",tokens:n,customTheme:s,TransitionAnimation:u}=e,t=m.useRef(null),o=h(e),{accordionProps:a}=d.useAccordion(e,o,t);return r.jsx(x.AccordionContextProvider,{state:o,TransitionAnimation:u,children:r.jsx(q.BoxWithForwardRef,{themeName:`${c}.wrapper`,tokens:n,customTheme:s,ref:t,...a,children:[...o.collection].map(i=>r.jsx(A,{item:i,themeName:c,tokens:n},i.key))})})};module.exports=l;
|
package/index4.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useAccordion as s } from "@react-aria/accordion";
|
|
|
4
4
|
import { useRef as f } from "react";
|
|
5
5
|
import { AccordionContextProvider as p } from "./index78.mjs";
|
|
6
6
|
import { BoxWithForwardRef as u } from "./index27.mjs";
|
|
7
|
-
import l from "./
|
|
7
|
+
import l from "./index113.mjs";
|
|
8
8
|
import A from "./index87.mjs";
|
|
9
9
|
const T = (o) => {
|
|
10
10
|
const { themeName: e = "accordion", tokens: c, customTheme: m, TransitionAnimation: a } = o, n = f(null), r = A(o), { accordionProps: d } = s(o, r, n);
|
package/index42.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const t=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),$=require("react-stately"),m=require("./index27.js"),n=require("./index3.js"),P=require("./
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),q=require("react"),N=require("react-aria"),$=require("react-stately"),m=require("./index27.js"),n=require("./index3.js"),P=require("./index145.js"),R=s=>{const{themeName:e="tagGroup",tokens:r,customTheme:d,as:h,label:c,description:i,errorMessage:u,removeButtonProps:p={children:"❌"}}=s,l=q.useRef(null),o=$.useListState(s),{gridProps:x,labelProps:g,descriptionProps:f,errorMessageProps:j}=N.useTagGroup(s,o,l);return t.jsxs(m.default,{as:h,themeName:`${e}.wrapper`,tokens:r,customTheme:d,children:[c&&t.jsx(n.default,{themeName:`${e}.label`,tokens:r,...g,children:c}),t.jsx(m.BoxWithForwardRef,{themeName:`${e}.tags`,tokens:r,ref:l,...x,children:[...o.collection].map(a=>t.jsx(P,{themeName:`${e}.tag`,tokens:r,item:{...a,props:{removeButtonProps:p,...a.props}},state:o},a.key))}),i&&t.jsx(n.default,{themeName:`${e}.description`,tokens:r,...f,children:i}),u&&t.jsx(n.default,{themeName:`${e}.errorMessage`,tokens:r,...j,children:u})]})};module.exports=R;
|
package/index42.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { useTagGroup as P } from "react-aria";
|
|
|
5
5
|
import { useListState as T } from "react-stately";
|
|
6
6
|
import b, { BoxWithForwardRef as y } from "./index27.mjs";
|
|
7
7
|
import a from "./index3.mjs";
|
|
8
|
-
import B from "./
|
|
8
|
+
import B from "./index145.mjs";
|
|
9
9
|
const F = (t) => {
|
|
10
10
|
const {
|
|
11
11
|
themeName: e = "tagGroup",
|
package/index43.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./index90.js");function d(t){return null}function m(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&u.Children.count(t.children)>0)}d.getCollectionNode=function*(e,l){const{childItems:a,title:s,children:c}=e,n=e.title||e.children,r=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";!r&&!(l!=null&&l.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&h.log("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.","warn"),yield{type:"item",props:e,rendered:n,textValue:r,"aria-label":e["aria-label"],hasChildNodes:m(e),*childNodes(){if(a)yield*Array.from(a).map(i=>({type:"item",value:i}));else if(s){const i=[];u.Children.forEach(c,o=>{i.push({type:"item",element:o})}),yield*i}}}};const f=d;exports.TagItem=f;
|
package/index43.mjs
CHANGED
package/index44.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const s=require("react/jsx-runtime"),T=require("./
|
|
2
|
+
"use strict";const s=require("react/jsx-runtime"),T=require("./index146.js"),k=require("./index147.js"),x=require("react"),q=require("./index143.js"),a=require("./index27.js"),L=require("./index47.js"),f=require("./index46.js");function j(i){var u;const{themeName:e="tabList",tokens:o,customTheme:b,label:r,orientation:c="horizontal",panelTransition:h=q}=i,t=k.useTabListState(i),l=x.useRef(null),{tabListProps:d}=T.useTabList(i,t,l),n={...o,orientation:c,isDisabled:t.isDisabled};return s.jsxs(a.default,{themeName:`${e}.wrapper`,tokens:n,customTheme:b,children:[r&&s.jsx(a.default,{themeName:`${e}.label`,tokens:n,children:r}),s.jsxs(a.default,{themeName:`${e}.container`,tokens:n,children:[s.jsx(a.BoxWithForwardRef,{themeName:`${e}.list`,tokens:n,...d,ref:l,children:[...t.collection].map(m=>s.jsx(L,{item:m,state:t,themeName:`${e}.tab`,tokens:{...o,orientation:c}},m.key))}),s.jsx(f,{state:t,themeName:`${e}.panel`,tokens:n,panelTransition:h},(u=t.selectedItem)==null?void 0:u.key)]})]})}module.exports=j;
|
package/index44.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as b, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { useTabList as $ } from "./
|
|
4
|
-
import { useTabListState as k } from "./
|
|
3
|
+
import { useTabList as $ } from "./index146.mjs";
|
|
4
|
+
import { useTabListState as k } from "./index147.mjs";
|
|
5
5
|
import { useRef as T } from "react";
|
|
6
|
-
import u from "./
|
|
6
|
+
import u from "./index143.mjs";
|
|
7
7
|
import s, { BoxWithForwardRef as x } from "./index27.mjs";
|
|
8
8
|
import N from "./index47.mjs";
|
|
9
9
|
import L from "./index46.mjs";
|
package/index45.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),h=require("./index90.js");function d(t){return null}function m(t){return t.hasChildItems!=null?t.hasChildItems:!!(t.childItems||t.title&&u.Children.count(t.children)>0)}d.getCollectionNode=function*(e,l){const{childItems:a,title:s,children:c}=e,n=e.title||e.children,r=e.textValue||(typeof n=="string"?n:"")||e["aria-label"]||"";!r&&!(l!=null&&l.suppressTextValueWarning)&&h.log("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.","warn"),yield{type:"item",props:e,rendered:n,textValue:r,"aria-label":e["aria-label"],hasChildNodes:m(e),*childNodes(){if(a)yield*Array.from(a).map(i=>({type:"item",value:i}));else if(s){const i=[];u.Children.forEach(c,o=>{i.push({type:"item",element:o})}),yield*i}}}};const f=d;exports.TabItem=f;
|
package/index45.mjs
CHANGED
package/index46.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const a=require("react/jsx-runtime"),m=require("./
|
|
2
|
+
"use strict";const a=require("react/jsx-runtime"),m=require("./index148.js"),h=require("react"),d=require("./index143.js"),b=require("./index27.js"),x=e=>{var i;const{state:t,customTheme:o,themeName:n="tabList.panel",tokens:s,panelTransition:c=d,...l}=e,r=h.useRef(null),{tabPanelProps:u}=m.useTabPanel(e,t,r);return a.jsx(c,{...l,themeName:`${n}.transition`,tokens:s,customTheme:o,isVisible:!0,children:a.jsx(b.BoxWithForwardRef,{themeName:`${n}.container`,tokens:s,...u,ref:r,children:(i=t.selectedItem)==null?void 0:i.props.children})})};module.exports=x;
|
package/index46.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { useTabPanel as f } from "./
|
|
3
|
+
import { useTabPanel as f } from "./index148.mjs";
|
|
4
4
|
import { useRef as p } from "react";
|
|
5
|
-
import h from "./
|
|
5
|
+
import h from "./index143.mjs";
|
|
6
6
|
import { BoxWithForwardRef as b } from "./index27.mjs";
|
|
7
7
|
const x = (e) => {
|
|
8
8
|
var o;
|
package/index47.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./
|
|
2
|
+
"use strict";const q=require("react/jsx-runtime"),k=require("@react-aria/focus"),x=require("./index149.js"),F=require("react"),P=require("react-aria"),R=require("./index88.js"),h=require("./index27.js"),D=({item:o,state:e,...r})=>{const{key:s,rendered:t}=o,{themeName:i="tabList.tab",tokens:c,...u}=R.mergeDefaultComponentProps(r,o.props),n=F.useRef(null),{tabProps:a}=x.useTab({key:s},e,n),{focusProps:l,isFocusVisible:b,isFocused:d}=k.useFocusRing({within:!0,autoFocus:!1}),p=e.selectionManager.isDisabled(s),f=e.selectionManager.isSelected(s),g=e.selectionManager.isLink(s),m={...c,isDisabled:p,isSelected:f,isLink:g,isFocused:d,isFocusVisible:b};return q.jsx(h.BoxWithForwardRef,{...P.mergeProps(u,l,a),themeName:i,tokens:m,ref:n,children:t})};module.exports=D;
|
package/index47.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as k } from "react/jsx-runtime";
|
|
3
3
|
import { useFocusRing as F } from "@react-aria/focus";
|
|
4
|
-
import { useTab as h } from "./
|
|
4
|
+
import { useTab as h } from "./index149.mjs";
|
|
5
5
|
import { useRef as x } from "react";
|
|
6
6
|
import { mergeProps as P } from "react-aria";
|
|
7
7
|
import { mergeDefaultComponentProps as D } from "./index88.mjs";
|
package/index6.mjs
CHANGED
|
@@ -3,39 +3,37 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
3
3
|
import C, { useRef as x } from "react";
|
|
4
4
|
import { useLink as F, FocusRing as T, useButton as w } from "react-aria";
|
|
5
5
|
import B from "./index73.mjs";
|
|
6
|
-
const N = C.forwardRef(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
href: e.href ?? ((g = o == null ? void 0 : o.href) == null ? void 0 : g.toString()),
|
|
31
|
-
elementType: r == null ? void 0 : r.toString(),
|
|
32
|
-
onPress: m
|
|
6
|
+
const N = C.forwardRef((e, t) => {
|
|
7
|
+
var g;
|
|
8
|
+
const {
|
|
9
|
+
as: n = "a",
|
|
10
|
+
handlePress: m,
|
|
11
|
+
children: i,
|
|
12
|
+
as: r,
|
|
13
|
+
customTheme: l,
|
|
14
|
+
tokens: f,
|
|
15
|
+
themeName: h = "button",
|
|
16
|
+
nextLinkProps: { onClick: c, ...o } = {},
|
|
17
|
+
...a
|
|
18
|
+
} = e, u = t, { linkProps: d } = F(
|
|
19
|
+
{
|
|
20
|
+
...e,
|
|
21
|
+
...o,
|
|
22
|
+
onClick: ({ currentTarget: b, ...P }) => {
|
|
23
|
+
c == null || c({
|
|
24
|
+
...P,
|
|
25
|
+
// @ts-expect-error Mismatch between react-aria and next/link. Happens since react-aria >3.36
|
|
26
|
+
currentTarget: b
|
|
27
|
+
});
|
|
33
28
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
href: e.href ?? ((g = o == null ? void 0 : o.href) == null ? void 0 : g.toString()),
|
|
30
|
+
elementType: r == null ? void 0 : r.toString(),
|
|
31
|
+
onPress: m
|
|
32
|
+
},
|
|
33
|
+
t ?? u
|
|
34
|
+
), R = B(h, f, l);
|
|
35
|
+
return /* @__PURE__ */ s(T, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ s(n, { ref: u, ...d, ...o, ...a, className: R, children: i }) });
|
|
36
|
+
}), k = C.forwardRef((e, t) => {
|
|
39
37
|
const {
|
|
40
38
|
as: n = "button",
|
|
41
39
|
handlePress: m,
|
package/index74.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("@okam/core-lib"),e=require("react"),[u,c]=o.createCtx();function l({children:s}){const[t,n]=e.useState(!1);e.useEffect(()=>{n(!0)},[]);const r=e.useMemo(()=>({isClient:t}),[t]);return i.jsx(c,{value:r,children:s})}exports.IsClientContextProvider=l;exports.useIsClient=u;
|
package/index74.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import i from "
|
|
3
|
+
import { createCtx as i } from "@okam/core-lib";
|
|
4
4
|
import { useState as n, useEffect as u, useMemo as f } from "react";
|
|
5
5
|
const [a, l] = i();
|
|
6
6
|
function p({ children: t }) {
|
package/index75.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),R=require("@okam/core-lib"),s=require("react"),q=require("react-stately"),B=require("./index89.js"),[b,j]=R.createCtx();function m(c){const{children:d,defaultSelectedKey:u,onOpenCallback:e,onCloseCallback:t,defaultIsOpen:p=!1,onOpenChange:r,isOpen:P,defaultOpen:f,type:S="dialog"}=c,y=f??p,g=s.useRef(null),v=s.useRef(null),n=q.useOverlayTriggerState({isOpen:P,defaultOpen:y,onOpenChange(a){if(r==null||r(a),!a){t==null||t();return}e==null||e()}}),{triggerProps:o,overlayProps:i,labelProps:l}=B({type:S},n),O=s.useMemo(()=>({labelProps:l,overlayProps:i,defaultSelectedKey:u,overlayState:n,buttonProps:{closeButtonProps:o,closeButtonRef:v,openButtonProps:o,openButtonRef:g}}),[l,i,u,n,o]);return x.jsx(j,{value:O,children:d})}exports.SidePanelContextProvider=m;exports.useSidePanel=b;
|
package/index75.mjs
CHANGED
|
@@ -1,44 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { useOverlayTriggerState as
|
|
6
|
-
import
|
|
7
|
-
const [
|
|
8
|
-
function
|
|
2
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
3
|
+
import { createCtx as x } from "@okam/core-lib";
|
|
4
|
+
import { useRef as a, useMemo as B } from "react";
|
|
5
|
+
import { useOverlayTriggerState as R } from "react-stately";
|
|
6
|
+
import b from "./index89.mjs";
|
|
7
|
+
const [M, h] = x();
|
|
8
|
+
function T(i) {
|
|
9
9
|
const {
|
|
10
|
-
children:
|
|
11
|
-
defaultSelectedKey:
|
|
10
|
+
children: f,
|
|
11
|
+
defaultSelectedKey: s,
|
|
12
12
|
onOpenCallback: e,
|
|
13
|
-
onCloseCallback:
|
|
14
|
-
defaultIsOpen:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultOpen:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
onCloseCallback: t,
|
|
14
|
+
defaultIsOpen: d = !1,
|
|
15
|
+
onOpenChange: o,
|
|
16
|
+
isOpen: c,
|
|
17
|
+
defaultOpen: P,
|
|
18
|
+
type: m = "dialog"
|
|
19
|
+
} = i, O = P ?? d, v = a(null), y = a(null), r = R({
|
|
20
|
+
isOpen: c,
|
|
21
|
+
defaultOpen: O,
|
|
22
|
+
onOpenChange(u) {
|
|
23
|
+
if (o == null || o(u), !u) {
|
|
24
|
+
t == null || t();
|
|
21
25
|
return;
|
|
22
26
|
}
|
|
23
27
|
e == null || e();
|
|
24
28
|
}
|
|
25
|
-
}), { triggerProps:
|
|
29
|
+
}), { triggerProps: n, overlayProps: l, labelProps: p } = b({ type: m }, r), g = B(
|
|
26
30
|
() => ({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
labelProps: p,
|
|
32
|
+
overlayProps: l,
|
|
33
|
+
defaultSelectedKey: s,
|
|
34
|
+
overlayState: r,
|
|
30
35
|
buttonProps: {
|
|
31
|
-
closeButtonProps:
|
|
32
|
-
closeButtonRef:
|
|
33
|
-
openButtonProps:
|
|
34
|
-
openButtonRef:
|
|
36
|
+
closeButtonProps: n,
|
|
37
|
+
closeButtonRef: y,
|
|
38
|
+
openButtonProps: n,
|
|
39
|
+
openButtonRef: v
|
|
35
40
|
}
|
|
36
41
|
}),
|
|
37
|
-
[
|
|
42
|
+
[p, l, s, r, n]
|
|
38
43
|
);
|
|
39
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ S(h, { value: g, children: f });
|
|
40
45
|
}
|
|
41
46
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
T as SidePanelContextProvider,
|
|
48
|
+
M as useSidePanel
|
|
44
49
|
};
|
package/index76.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),q=require("@okam/core-lib"),j=require("react"),g=require("react-stately"),m=require("./index75.js"),[h,s]=q.createCtxNullable();function L({children:c,defaultSelectedKey:r,defaultIsOpen:x,onCloseCallback:i,onOpenCallback:M,tabs:v,openBtn:n,closeBtn:u,...P}){const e=g.useTabListState({...P,children:v,defaultSelectedKey:r}),d=j.useMemo(()=>({openBtn:n,closeBtn:u,tabState:e,defaultSelectedKey:r}),[n,u,e,r]);return o.jsx(s,{value:d,children:o.jsx(m.SidePanelContextProvider,{onCloseCallback:()=>{var t;i==null||i(),(t=e==null?void 0:e.setSelectedKey)==null||t.call(e,r)},onOpenCallback:M,defaultIsOpen:x,defaultSelectedKey:r.toString(),children:c})})}exports.MenuContextProvider=L;exports.MenuProvider=s;exports.useMenu=h;
|
package/index76.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
-
import { createCtxNullable as P } from "
|
|
3
|
+
import { createCtxNullable as P } from "@okam/core-lib";
|
|
4
4
|
import { useMemo as f } from "react";
|
|
5
5
|
import { useTabListState as h } from "react-stately";
|
|
6
6
|
import { SidePanelContextProvider as c } from "./index75.mjs";
|
package/index78.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("@okam/core-lib"),u=require("react"),[d,r]=s.createCtxNullable();function a(t){const{state:e,children:c,TransitionAnimation:o}=t,n=u.useMemo(()=>({state:e,TransitionAnimation:o}),[e,o]);return i.jsx(r,{value:n,children:c})}exports.AccordionContextProvider=a;exports.AccordionProvider=r;exports.useAccordionCtx=d;
|
package/index78.mjs
CHANGED
package/index79.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("@okam/core-lib"),s=require("react"),[l,t]=n.createCtx();function S(o){const{userQuery:u,children:c}=o,[e,r]=s.useState(u),a=s.useMemo(()=>({userSearchQuery:e,setUserSearchQuery:r}),[e,r]);return i.jsx(t,{value:a,children:c})}exports.SearchBarProvider=S;exports.SearchProvider=t;exports.useUserQueryValHook=l;
|
package/index79.mjs
CHANGED
package/index8.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const
|
|
2
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),N=require("react-div-100vh"),S=require("./index75.js"),T=require("./index33.js"),b=require("./index114.js"),o=require("./index27.js"),v=require("./index30.js"),D=d=>{const{children:l,closeBtnRender:a,themeName:e="sidePanel",tokens:u,TransitionAnimation:m=T,PanelTransition:h=b,onOpenChange:i,customTheme:x,isDismissable:q=!0,shouldCloseOnInteractOutside:f,isKeyboardDismissDisabled:P=!1,onCloseCallBack:r,title:j,...k}=d,{overlayState:c,overlayProps:$}=S.useSidePanel(),{isOpen:n}=c;p.useEffect(()=>{i==null||i(n),n||r==null||r()},[n,i,r]);const s={isOpen:n,...u};return t.jsx(v,{themeName:e,tokens:s,customTheme:x,state:c,...$,transitionComponent:h,isDismissable:q,shouldCloseOnInteractOutside:f,isKeyboardDismissDisabled:P,title:j,...k,children:t.jsxs(o.default,{as:N,themeName:`${e}.wrapper`,tokens:s,children:[a&&a(),t.jsx(m,{themeName:`${e}.transitionAnimation`,tokens:s,isVisible:n,children:t.jsx(o.default,{themeName:`${e}.container`,tokens:s,children:t.jsx(o.default,{themeName:`${e}.innerContainer`,tokens:s,children:l})})})]})})};module.exports=D;
|
package/index8.mjs
CHANGED
|
@@ -1,46 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
2
|
+
import { jsx as s, jsxs as b } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect as v } from "react";
|
|
4
|
+
import x from "react-div-100vh";
|
|
5
|
+
import { useSidePanel as D } from "./index75.mjs";
|
|
6
|
+
import $ from "./index33.mjs";
|
|
7
|
+
import y from "./index114.mjs";
|
|
8
|
+
import r from "./index27.mjs";
|
|
9
|
+
import j from "./index30.mjs";
|
|
10
|
+
const M = (l) => {
|
|
11
11
|
const {
|
|
12
|
-
children:
|
|
13
|
-
closeBtnRender:
|
|
12
|
+
children: d,
|
|
13
|
+
closeBtnRender: m,
|
|
14
14
|
themeName: e = "sidePanel",
|
|
15
|
-
tokens:
|
|
16
|
-
TransitionAnimation:
|
|
17
|
-
PanelTransition:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
tokens: c,
|
|
16
|
+
TransitionAnimation: f = $,
|
|
17
|
+
PanelTransition: h = y,
|
|
18
|
+
onOpenChange: n,
|
|
19
|
+
customTheme: p,
|
|
20
|
+
isDismissable: u = !0,
|
|
21
|
+
shouldCloseOnInteractOutside: P,
|
|
22
|
+
isKeyboardDismissDisabled: k = !1,
|
|
23
|
+
onCloseCallBack: o,
|
|
24
|
+
title: N,
|
|
25
|
+
...S
|
|
26
|
+
} = l, { overlayState: a, overlayProps: T } = D(), { isOpen: t } = a;
|
|
27
|
+
v(() => {
|
|
28
|
+
n == null || n(t), t || o == null || o();
|
|
29
|
+
}, [t, n, o]);
|
|
30
|
+
const i = {
|
|
31
|
+
isOpen: t,
|
|
32
|
+
...c
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ s(
|
|
35
|
+
j,
|
|
22
36
|
{
|
|
23
37
|
themeName: e,
|
|
24
38
|
tokens: i,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
children: /* @__PURE__ */ n(o, { themeName: `${e}.container`, tokens: i, children: /* @__PURE__ */ n(o, { themeName: `${e}.innerContainer`, tokens: i, children: a }) })
|
|
38
|
-
}
|
|
39
|
-
)
|
|
39
|
+
customTheme: p,
|
|
40
|
+
state: a,
|
|
41
|
+
...T,
|
|
42
|
+
transitionComponent: h,
|
|
43
|
+
isDismissable: u,
|
|
44
|
+
shouldCloseOnInteractOutside: P,
|
|
45
|
+
isKeyboardDismissDisabled: k,
|
|
46
|
+
title: N,
|
|
47
|
+
...S,
|
|
48
|
+
children: /* @__PURE__ */ b(r, { as: x, themeName: `${e}.wrapper`, tokens: i, children: [
|
|
49
|
+
m && m(),
|
|
50
|
+
/* @__PURE__ */ s(f, { themeName: `${e}.transitionAnimation`, tokens: i, isVisible: t, children: /* @__PURE__ */ s(r, { themeName: `${e}.container`, tokens: i, children: /* @__PURE__ */ s(r, { themeName: `${e}.innerContainer`, tokens: i, children: d }) }) })
|
|
40
51
|
] })
|
|
41
52
|
}
|
|
42
53
|
);
|
|
43
54
|
};
|
|
44
55
|
export {
|
|
45
|
-
|
|
56
|
+
M as default
|
|
46
57
|
};
|
package/index80.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("@okam/core-lib"),c=require("react"),[u,r]=i.createCtxNullable();function s(o){const{controller:e,children:t}=o,l=c.useMemo(()=>({controller:e}),[e]);return n.jsx(r,{value:l,children:t})}exports.SwiperControllerContextProvider=s;exports.SwiperControllerProvider=r;exports.useSwiperController=u;
|
package/index80.mjs
CHANGED
package/index81.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),g=require("@okam/core-lib"),v=require("radashi"),s=require("react"),b=require("./index90.js"),[q,i]=g.createCtx();function x({useTranslationFunc:u,children:c,namespace:o="common",translateFunctionName:e="t"}){const l=u(o),d=(t,n)=>(b.log(`translation function not found: translateFunctionName: ${e}`,"warn",{key:t,obj:n,namespace:o}),t),r=v.get(l,e,d),a=s.useCallback((t,n)=>n==null?r(t):r(t,n),[r]),T=s.useMemo(()=>({t:a}),[a]);return f.jsx(i,{value:T,children:c})}exports.TranslationContextProvider=x;exports.TranslationProvider=i;exports.useTranslation=q;
|