@hellobetterdigitalnz/selwynui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/.storybook/main.ts +19 -0
  2. package/.storybook/preview.tsx +55 -0
  3. package/.storybook/vitest.setup.ts +7 -0
  4. package/README.md +73 -0
  5. package/eslint.config.js +29 -0
  6. package/index.html +13 -0
  7. package/package.json +63 -0
  8. package/public/img/card-one.png +0 -0
  9. package/public/img/card-three.png +0 -0
  10. package/public/img/card-two.png +0 -0
  11. package/public/img/footer-bg-design.svg +14 -0
  12. package/public/img/footer-logo.svg +9 -0
  13. package/public/img/promo-banner-image.svg +9 -0
  14. package/public/img/visit-brand-piller.svg +6 -0
  15. package/public/img/waikirikiri-full-logo.svg +23 -0
  16. package/public/vite.svg +1 -0
  17. package/src/App.tsx +8 -0
  18. package/src/Components/DataDisplay/DetailsCard/DetailsCard.stories.tsx +39 -0
  19. package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +87 -0
  20. package/src/Components/DataDisplay/DetailsCard/DetailsCardProps.tsx +12 -0
  21. package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +123 -0
  22. package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +150 -0
  23. package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +118 -0
  24. package/src/Components/DataDisplay/ImageContent/ImageContentMaskingImages.tsx +334 -0
  25. package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +42 -0
  26. package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +278 -0
  27. package/src/Components/DataDisplay/IntroBlock/IntroBlock.stories.tsx +37 -0
  28. package/src/Components/DataDisplay/IntroBlock/IntroBlock.tsx +37 -0
  29. package/src/Components/DataDisplay/IntroBlock/IntroBlockProps.tsx +10 -0
  30. package/src/Components/DataDisplay/IntroBlock/introBlock.module.scss +33 -0
  31. package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +114 -0
  32. package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +35 -0
  33. package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +13 -0
  34. package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +73 -0
  35. package/src/Components/DataDisplay/Pathway/Pathway.stories.tsx +27 -0
  36. package/src/Components/DataDisplay/Pathway/Pathway.tsx +83 -0
  37. package/src/Components/DataDisplay/Pathway/PathwayProps.tsx +17 -0
  38. package/src/Components/DataDisplay/Pathway/pathway.module.scss +124 -0
  39. package/src/Components/DataDisplay/PromoBannerBlock/PromoBanner.stories.tsx +45 -0
  40. package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.tsx +74 -0
  41. package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.tsx +16 -0
  42. package/src/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.tsx +14 -0
  43. package/src/Components/DataDisplay/PromoBannerBlock/promoBanner.module.scss +172 -0
  44. package/src/Components/DataDisplay/index.ts +19 -0
  45. package/src/Components/Form/Button/Button.stories.tsx +42 -0
  46. package/src/Components/Form/Button/Button.tsx +69 -0
  47. package/src/Components/Form/Button/ButtonProps.tsx +16 -0
  48. package/src/Components/Form/Button/button.module.scss +132 -0
  49. package/src/Components/Form/index.ts +2 -0
  50. package/src/Components/Icons/Arrows/ArrowLeft/ArrowLeft.tsx +49 -0
  51. package/src/Components/Icons/Arrows/ArrowRight/ArrowRight.tsx +47 -0
  52. package/src/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.tsx +48 -0
  53. package/src/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.tsx +49 -0
  54. package/src/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.tsx +50 -0
  55. package/src/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.tsx +37 -0
  56. package/src/Components/Icons/Arrows/CaretDown/CaretDown.tsx +49 -0
  57. package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +102 -0
  58. package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +102 -0
  59. package/src/Components/Icons/Arrows/CaretUp/CaretUp.tsx +49 -0
  60. package/src/Components/Icons/Arrows/CaretUpDown/CaretUpDown.tsx +49 -0
  61. package/src/Components/Icons/Brands/FacebookLogo/FacebookLogo.tsx +35 -0
  62. package/src/Components/Icons/Brands/InstagramLogo/InstagramLogo.tsx +35 -0
  63. package/src/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.tsx +35 -0
  64. package/src/Components/Icons/Brands/WindowsLogo/WindowsLogo.tsx +105 -0
  65. package/src/Components/Icons/Commerce/Backpack/Backpack.tsx +54 -0
  66. package/src/Components/Icons/Commerce/BowlSteam/BowlSteam.tsx +34 -0
  67. package/src/Components/Icons/Commerce/Bread/Bread.tsx +34 -0
  68. package/src/Components/Icons/Commerce/Cheers/Cheers.tsx +34 -0
  69. package/src/Components/Icons/Commerce/ChefHat/ChefHat.tsx +34 -0
  70. package/src/Components/Icons/Commerce/Coffee/Coffee.tsx +54 -0
  71. package/src/Components/Icons/Commerce/CreditCard/CreditCard.tsx +54 -0
  72. package/src/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.tsx +105 -0
  73. package/src/Components/Icons/Commerce/Grains/Grains.tsx +54 -0
  74. package/src/Components/Icons/Commerce/Scale/Scale.tsx +61 -0
  75. package/src/Components/Icons/Commerce/StoreFront/StoreFront.tsx +54 -0
  76. package/src/Components/Icons/Communication/AddressBook/AddressBook.stories.ts +28 -0
  77. package/src/Components/Icons/Communication/AddressBook/AddressBook.tsx +50 -0
  78. package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.ts +28 -0
  79. package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.tsx +49 -0
  80. package/src/Components/Icons/Communication/Asterisk/Asterisk.stories.ts +28 -0
  81. package/src/Components/Icons/Communication/Asterisk/Asterisk.tsx +50 -0
  82. package/src/Components/Icons/Communication/At/At.stories.ts +28 -0
  83. package/src/Components/Icons/Communication/At/At.tsx +49 -0
  84. package/src/Components/Icons/Communication/Broadcast/Broadcast.stories.ts +27 -0
  85. package/src/Components/Icons/Communication/Broadcast/Broadcast.tsx +49 -0
  86. package/src/Components/Icons/Communication/Chat/Chat.stories.ts +28 -0
  87. package/src/Components/Icons/Communication/Chat/Chat.tsx +49 -0
  88. package/src/Components/Icons/Communication/ChatCircleText/ChatCircleText.tsx +87 -0
  89. package/src/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.tsx +52 -0
  90. package/src/Components/Icons/Communication/Export/Export.tsx +52 -0
  91. package/src/Components/Icons/Communication/Phone/Phone.tsx +54 -0
  92. package/src/Components/Icons/Communication/ThumbsUp/ThumbsUp.tsx +47 -0
  93. package/src/Components/Icons/Communication/Translate/Translate.tsx +51 -0
  94. package/src/Components/Icons/Design/DropHalfBottom/DropHalfBottom.tsx +37 -0
  95. package/src/Components/Icons/Design/Eye/Eye.tsx +105 -0
  96. package/src/Components/Icons/Design/EyeSlash/EyeSlash.tsx +105 -0
  97. package/src/Components/Icons/Design/GearFine/GearFine.tsx +105 -0
  98. package/src/Components/Icons/Design/PencilLine/PencilLine.tsx +63 -0
  99. package/src/Components/Icons/Design/PencilSimple/PencilSimple.tsx +63 -0
  100. package/src/Components/Icons/Design/Ruler/Ruler.tsx +63 -0
  101. package/src/Components/Icons/Design/SquaresFour/SquaresFour.tsx +54 -0
  102. package/src/Components/Icons/Education/BookOpenText/BookOpenText.tsx +63 -0
  103. package/src/Components/Icons/Education/BookmarkSimple/BookmarkSimple.tsx +44 -0
  104. package/src/Components/Icons/Education/Certificate/Certificate.tsx +56 -0
  105. package/src/Components/Icons/Education/GraduationCap/GraduationCap.tsx +105 -0
  106. package/src/Components/Icons/Games/Cricket/Cricket.tsx +23 -0
  107. package/src/Components/Icons/Games/Football/Football.tsx +47 -0
  108. package/src/Components/Icons/Games/Golf/Golf.tsx +34 -0
  109. package/src/Components/Icons/HealthAndWellness/Barbell/Barbell.tsx +36 -0
  110. package/src/Components/Icons/IconProps.tsx +5 -0
  111. package/src/Components/Icons/MapAndTravel/Barn/Barn.tsx +34 -0
  112. package/src/Components/Icons/MapAndTravel/Bicycle/Bicycle.tsx +54 -0
  113. package/src/Components/Icons/MapAndTravel/Bus/Bus.tsx +54 -0
  114. package/src/Components/Icons/MapAndTravel/Car/Car.tsx +54 -0
  115. package/src/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.tsx +54 -0
  116. package/src/Components/Icons/MapAndTravel/Farm/Farm.tsx +34 -0
  117. package/src/Components/Icons/MapAndTravel/Globe/Globe.tsx +61 -0
  118. package/src/Components/Icons/MapAndTravel/Goggles/Goggles.tsx +47 -0
  119. package/src/Components/Icons/MapAndTravel/House/House.tsx +61 -0
  120. package/src/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.tsx +61 -0
  121. package/src/Components/Icons/MapAndTravel/MapPin/MapPin.tsx +53 -0
  122. package/src/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.tsx +59 -0
  123. package/src/Components/Icons/MapAndTravel/Path/Path.tsx +35 -0
  124. package/src/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.tsx +35 -0
  125. package/src/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.tsx +61 -0
  126. package/src/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.tsx +36 -0
  127. package/src/Components/Icons/MapAndTravel/Tram/Tram.tsx +35 -0
  128. package/src/Components/Icons/MapAndTravel/Van/Van.tsx +60 -0
  129. package/src/Components/Icons/MathsAndFinance/Calculator/Calculator.tsx +59 -0
  130. package/src/Components/Icons/MathsAndFinance/ChartBar/ChartBar.tsx +59 -0
  131. package/src/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.tsx +52 -0
  132. package/src/Components/Icons/MathsAndFinance/ChartLine/ChartLine.tsx +53 -0
  133. package/src/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.tsx +47 -0
  134. package/src/Components/Icons/MathsAndFinance/ChartPie/ChartPie.tsx +54 -0
  135. package/src/Components/Icons/MathsAndFinance/Minus/Minus.tsx +49 -0
  136. package/src/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.tsx +44 -0
  137. package/src/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.tsx +63 -0
  138. package/src/Components/Icons/MathsAndFinance/Plus/Plus.tsx +63 -0
  139. package/src/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.tsx +51 -0
  140. package/src/Components/Icons/MathsAndFinance/XIcon/XIcon.tsx +107 -0
  141. package/src/Components/Icons/Media/Camera/Camera.tsx +49 -0
  142. package/src/Components/Icons/Media/DiscoBall/DiscoBall.tsx +22 -0
  143. package/src/Components/Icons/Media/FilmStrip/FilmStrip.tsx +45 -0
  144. package/src/Components/Icons/Media/Microphone/Microphone.tsx +94 -0
  145. package/src/Components/Icons/Media/MusicNotes/MusicNotes.tsx +42 -0
  146. package/src/Components/Icons/Media/PlayCircle/PlayCircle.tsx +49 -0
  147. package/src/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.tsx +49 -0
  148. package/src/Components/Icons/Media/StopCircle/StopCircle.tsx +50 -0
  149. package/src/Components/Icons/Media/VideoCamera/VideoCamera.tsx +105 -0
  150. package/src/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.tsx +22 -0
  151. package/src/Components/Icons/OfficeAndEditing/Copy/Copy.tsx +47 -0
  152. package/src/Components/Icons/OfficeAndEditing/FileText/FileText.tsx +35 -0
  153. package/src/Components/Icons/OfficeAndEditing/Files/Files.tsx +49 -0
  154. package/src/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.tsx +49 -0
  155. package/src/Components/Icons/OfficeAndEditing/Folder/Folder.tsx +61 -0
  156. package/src/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.tsx +35 -0
  157. package/src/Components/Icons/OfficeAndEditing/Folders/Folders.tsx +47 -0
  158. package/src/Components/Icons/OfficeAndEditing/List/List.tsx +46 -0
  159. package/src/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.tsx +59 -0
  160. package/src/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.tsx +59 -0
  161. package/src/Components/Icons/OfficeAndEditing/Printer/Printer.tsx +48 -0
  162. package/src/Components/Icons/OfficeAndEditing/TextAa/TextAa.tsx +63 -0
  163. package/src/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.tsx +61 -0
  164. package/src/Components/Icons/OfficeAndEditing/Trash/Trash.tsx +49 -0
  165. package/src/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.tsx +49 -0
  166. package/src/Components/Icons/People/Person/Person.tsx +35 -0
  167. package/src/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.tsx +35 -0
  168. package/src/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.tsx +35 -0
  169. package/src/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.tsx +34 -0
  170. package/src/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.tsx +35 -0
  171. package/src/Components/Icons/People/User/User.tsx +61 -0
  172. package/src/Components/Icons/People/UserCircle/UserCircle.tsx +61 -0
  173. package/src/Components/Icons/People/UserSwitch/UserSwitch.tsx +61 -0
  174. package/src/Components/Icons/People/Users/Users.tsx +107 -0
  175. package/src/Components/Icons/SecurityAndWarnings/Info/Info.tsx +54 -0
  176. package/src/Components/Icons/SecurityAndWarnings/Key/Key.tsx +54 -0
  177. package/src/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.tsx +54 -0
  178. package/src/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.tsx +61 -0
  179. package/src/Components/Icons/SecurityAndWarnings/Question/Question.tsx +53 -0
  180. package/src/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.tsx +89 -0
  181. package/src/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +105 -0
  182. package/src/Components/Icons/SystemAndDevice/Bell/Bell.tsx +49 -0
  183. package/src/Components/Icons/SystemAndDevice/Check/Check.tsx +49 -0
  184. package/src/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.tsx +63 -0
  185. package/src/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.tsx +74 -0
  186. package/src/Components/Icons/SystemAndDevice/Desktop/Desktop.tsx +107 -0
  187. package/src/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.tsx +78 -0
  188. package/src/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.tsx +49 -0
  189. package/src/Components/Icons/SystemAndDevice/DotsSix/DotsSix.tsx +107 -0
  190. package/src/Components/Icons/SystemAndDevice/DotsThree/DotsThree.tsx +63 -0
  191. package/src/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.tsx +63 -0
  192. package/src/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.tsx +52 -0
  193. package/src/Components/Icons/SystemAndDevice/Gear/Gear.tsx +61 -0
  194. package/src/Components/Icons/SystemAndDevice/Link/Link.tsx +54 -0
  195. package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +105 -0
  196. package/src/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.tsx +63 -0
  197. package/src/Components/Icons/SystemAndDevice/SignIn/SignIn.tsx +51 -0
  198. package/src/Components/Icons/SystemAndDevice/SignOut/SignOut.tsx +49 -0
  199. package/src/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.tsx +51 -0
  200. package/src/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.tsx +51 -0
  201. package/src/Components/Icons/Time/Calendar/Calendar.tsx +61 -0
  202. package/src/Components/Icons/Time/CalendarBank/CalendarBank.tsx +105 -0
  203. package/src/Components/Icons/Time/CalendarCheck/CalendarCheck.tsx +61 -0
  204. package/src/Components/Icons/Time/CalendarDots/CalendarDots.tsx +28 -0
  205. package/src/Components/Icons/Time/Clock/Clock.tsx +105 -0
  206. package/src/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.tsx +74 -0
  207. package/src/Components/Icons/WeatherAndNature/Bird/Bird.tsx +54 -0
  208. package/src/Components/Icons/WeatherAndNature/Campfire/Campfire.tsx +35 -0
  209. package/src/Components/Icons/WeatherAndNature/CloudSun/CloudSun.tsx +49 -0
  210. package/src/Components/Icons/WeatherAndNature/Cow/Cow.tsx +34 -0
  211. package/src/Components/Icons/WeatherAndNature/Dog/Dog.tsx +54 -0
  212. package/src/Components/Icons/WeatherAndNature/FishSimple/FishSimple.tsx +54 -0
  213. package/src/Components/Icons/WeatherAndNature/Flower/Flower.tsx +47 -0
  214. package/src/Components/Icons/WeatherAndNature/Moon/Moon.tsx +35 -0
  215. package/src/Components/Icons/WeatherAndNature/Mountains/Mountains.tsx +49 -0
  216. package/src/Components/Icons/WeatherAndNature/Plant/Plant.tsx +105 -0
  217. package/src/Components/Icons/WeatherAndNature/Snowflake/Snowflake.tsx +46 -0
  218. package/src/Components/Icons/WeatherAndNature/Sparkle/Sparkle.tsx +35 -0
  219. package/src/Components/Icons/WeatherAndNature/Sun/Sun.tsx +47 -0
  220. package/src/Components/Icons/WeatherAndNature/Tree/Tree.tsx +84 -0
  221. package/src/Components/Icons/index.ts +165 -0
  222. package/src/Components/Layout/Footer/Footer.stories.tsx +178 -0
  223. package/src/Components/Layout/Footer/Footer.tsx +32 -0
  224. package/src/Components/Layout/Footer/FooterBottom.tsx +21 -0
  225. package/src/Components/Layout/Footer/FooterBottomLeft.tsx +31 -0
  226. package/src/Components/Layout/Footer/FooterBottomLeftProps.tsx +13 -0
  227. package/src/Components/Layout/Footer/FooterBottomProps.tsx +7 -0
  228. package/src/Components/Layout/Footer/FooterBottomRight.tsx +47 -0
  229. package/src/Components/Layout/Footer/FooterBottomRightProps.tsx +7 -0
  230. package/src/Components/Layout/Footer/FooterItem.tsx +17 -0
  231. package/src/Components/Layout/Footer/FooterItemProps.tsx +8 -0
  232. package/src/Components/Layout/Footer/FooterMiddle.tsx +14 -0
  233. package/src/Components/Layout/Footer/FooterMiddleProps.tsx +8 -0
  234. package/src/Components/Layout/Footer/FooterProps.tsx +11 -0
  235. package/src/Components/Layout/Footer/FooterTop.tsx +30 -0
  236. package/src/Components/Layout/Footer/FooterTopProps.tsx +9 -0
  237. package/src/Components/Layout/Footer/footer-bg-design.tsx +21 -0
  238. package/src/Components/Layout/Footer/footer.module.scss +295 -0
  239. package/src/Components/Layout/Header/Header.stories.tsx +66 -0
  240. package/src/Components/Layout/Header/Header.tsx +27 -0
  241. package/src/Components/Layout/Header/HeaderProps.tsx +9 -0
  242. package/src/Components/Layout/Header/HeaderRight.tsx +12 -0
  243. package/src/Components/Layout/Header/HeaderRightItem.tsx +21 -0
  244. package/src/Components/Layout/Header/HeaderRightItemProps.tsx +13 -0
  245. package/src/Components/Layout/Header/HeaderRightProps.tsx +7 -0
  246. package/src/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.tsx +10 -0
  247. package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +5 -0
  248. package/src/Components/Layout/Header/MegaMenu/MegaMenuProps.tsx +5 -0
  249. package/src/Components/Layout/Header/header.module.scss +90 -0
  250. package/src/Components/Layout/HeroBanner/HeroBanner.stories.tsx +77 -0
  251. package/src/Components/Layout/HeroBanner/HeroBanner.tsx +77 -0
  252. package/src/Components/Layout/HeroBanner/HeroBannerProps.tsx +10 -0
  253. package/src/Components/Layout/HeroBanner/LargeHeroIcon.tsx +18 -0
  254. package/src/Components/Layout/HeroBanner/heroBanner.module.scss +179 -0
  255. package/src/Components/Layout/index.ts +27 -0
  256. package/src/Components/Shared/Container/Container.tsx +19 -0
  257. package/src/Components/Shared/Container/ContainerProps.tsx +8 -0
  258. package/src/Components/Shared/Container/container.module.scss +13 -0
  259. package/src/Components/Shared/ElementHolder/ElementHolder.tsx +40 -0
  260. package/src/Components/Shared/ElementHolder/ElementHolderProps.tsx +18 -0
  261. package/src/Components/Shared/ElementHolder/elementHolder.module.scss +189 -0
  262. package/src/Components/Shared/index.ts +5 -0
  263. package/src/assets/react.svg +1 -0
  264. package/src/global.scss +337 -0
  265. package/src/globals.d.ts +1 -0
  266. package/src/index.ts +5 -0
  267. package/src/main.tsx +10 -0
  268. package/src/scss.d.ts +1 -0
  269. package/src/variable.scss +3 -0
  270. package/tsconfig.app.json +45 -0
  271. package/tsconfig.json +7 -0
  272. package/tsconfig.node.json +10 -0
  273. package/tsconfig.node.tsbuildinfo +1 -0
  274. package/vite.config.d.ts +2 -0
  275. package/vite.config.js +40 -0
  276. package/vite.config.ts +31 -0
  277. package/vitest.shims.d.ts +1 -0
package/vite.config.js ADDED
@@ -0,0 +1,40 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
10
+ import { defineConfig } from "vite";
11
+ import dts from "vite-plugin-dts";
12
+ import { peerDependencies } from "./package.json";
13
+ import pkg from './package.json';
14
+ export default defineConfig({
15
+ build: {
16
+ lib: {
17
+ entry: "./src/index.ts",
18
+ name: "SelwynUI",
19
+ fileName: function (format) { return "index.".concat(format, ".js"); },
20
+ formats: ["cjs", "es"],
21
+ },
22
+ rollupOptions: {
23
+ external: __spreadArray(__spreadArray([], Object.keys(peerDependencies), true), ["react/jsx-runtime"], false),
24
+ },
25
+ sourcemap: true,
26
+ emptyOutDir: true,
27
+ },
28
+ plugins: [
29
+ dts({
30
+ tsconfigPath: './tsconfig.app.json',
31
+ include: ['src'],
32
+ outDir: 'dist',
33
+ insertTypesEntry: true,
34
+ }),
35
+ ],
36
+ define: {
37
+ __FEATURE_ENABLED__: JSON.stringify(pkg.customConfig.featureEnabled),
38
+ 'process.env.NEXT_PUBLIC_CLOUD_NAME': JSON.stringify(process.env.VITE_NEXT_PUBLIC_CLOUD_NAME),
39
+ },
40
+ });
package/vite.config.ts ADDED
@@ -0,0 +1,31 @@
1
+ import { defineConfig } from "vite";
2
+ import dts from "vite-plugin-dts";
3
+ import { peerDependencies } from "./package.json";
4
+ import pkg from './package.json';
5
+
6
+ export default defineConfig({
7
+ build: {
8
+ lib: {
9
+ entry: "./src/index.ts",
10
+ name: "SelwynUI",
11
+ fileName: (format) => `index.${format}.js`,
12
+ formats: ["cjs", "es"],
13
+ },
14
+ rollupOptions: {
15
+ external: [...Object.keys(peerDependencies), "react/jsx-runtime"],
16
+ },
17
+ sourcemap: true,
18
+ emptyOutDir: true,
19
+ },
20
+ plugins: [
21
+ dts({
22
+ tsconfigPath: './tsconfig.app.json',
23
+ include: ['src'],
24
+ outDir: 'dist',
25
+ insertTypesEntry: true,
26
+ }),],
27
+ define: {
28
+ __FEATURE_ENABLED__: JSON.stringify(pkg.customConfig.featureEnabled),
29
+ 'process.env.NEXT_PUBLIC_CLOUD_NAME': JSON.stringify(process.env.VITE_NEXT_PUBLIC_CLOUD_NAME),
30
+ },
31
+ });
@@ -0,0 +1 @@
1
+ /// <reference types="@vitest/browser-playwright" />