@juspay/blend-design-system 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 (256) hide show
  1. package/README.md +177 -0
  2. package/dist/assets/main.css +1 -0
  3. package/dist/breakpoints/breakPoints.d.ts +5 -0
  4. package/dist/components/Accordion/Accordion.d.ts +4 -0
  5. package/dist/components/Accordion/AccordionItem.d.ts +6 -0
  6. package/dist/components/Accordion/accordion.tokens.d.ts +49 -0
  7. package/dist/components/Accordion/index.d.ts +3 -0
  8. package/dist/components/Accordion/types.d.ts +29 -0
  9. package/dist/components/Alert/Alert.d.ts +4 -0
  10. package/dist/components/Alert/alert.tokens.d.ts +25 -0
  11. package/dist/components/Alert/index.d.ts +2 -0
  12. package/dist/components/Alert/types.d.ts +33 -0
  13. package/dist/components/Avatar/Avatar.d.ts +12 -0
  14. package/dist/components/Avatar/StyledAvatar.d.ts +8 -0
  15. package/dist/components/Avatar/avatarUtils.d.ts +7 -0
  16. package/dist/components/Avatar/index.d.ts +2 -0
  17. package/dist/components/Avatar/token.d.ts +71 -0
  18. package/dist/components/Avatar/types.d.ts +29 -0
  19. package/dist/components/AvatarGroup/AvatarGroup.d.ts +11 -0
  20. package/dist/components/AvatarGroup/StyledAvatarGroup.d.ts +6 -0
  21. package/dist/components/AvatarGroup/avatarGroupUtils.d.ts +24 -0
  22. package/dist/components/AvatarGroup/index.d.ts +2 -0
  23. package/dist/components/AvatarGroup/token.d.ts +89 -0
  24. package/dist/components/AvatarGroup/types.d.ts +29 -0
  25. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  26. package/dist/components/Breadcrumb/breadcrumb.tokens.d.ts +31 -0
  27. package/dist/components/Breadcrumb/index.d.ts +2 -0
  28. package/dist/components/Breadcrumb/types.d.ts +6 -0
  29. package/dist/components/Button/Button.d.ts +18 -0
  30. package/dist/components/Button/button.tokens.d.ts +61 -0
  31. package/dist/components/Button/index.d.ts +2 -0
  32. package/dist/components/Button/types.d.ts +34 -0
  33. package/dist/components/ButtonGroup/ButtonGroup.d.ts +4 -0
  34. package/dist/components/ButtonGroup/index.d.ts +2 -0
  35. package/dist/components/ButtonGroup/types.d.ts +6 -0
  36. package/dist/components/Charts/ChartHeader.d.ts +2 -0
  37. package/dist/components/Charts/ChartLegend.d.ts +3 -0
  38. package/dist/components/Charts/ChartUtils.d.ts +5 -0
  39. package/dist/components/Charts/Charts.d.ts +3 -0
  40. package/dist/components/Charts/CustomTooltip.d.ts +2 -0
  41. package/dist/components/Charts/index.d.ts +2 -0
  42. package/dist/components/Charts/renderChart.d.ts +2 -0
  43. package/dist/components/Charts/types.d.ts +83 -0
  44. package/dist/components/Charts/utils.d.ts +1 -0
  45. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  46. package/dist/components/Checkbox/StyledCheckbox.d.ts +11 -0
  47. package/dist/components/Checkbox/checkbox.token.d.ts +96 -0
  48. package/dist/components/Checkbox/checkboxUtils.d.ts +68 -0
  49. package/dist/components/Checkbox/index.d.ts +2 -0
  50. package/dist/components/Checkbox/types.d.ts +21 -0
  51. package/dist/components/DataTable/ColumnFilter/index.d.ts +9 -0
  52. package/dist/components/DataTable/ColumnManager.d.ts +5 -0
  53. package/dist/components/DataTable/DataTable.d.ts +3 -0
  54. package/dist/components/DataTable/DataTable.stories.d.ts +16 -0
  55. package/dist/components/DataTable/DataTableHeader/index.d.ts +3 -0
  56. package/dist/components/DataTable/DataTableHeader/types.d.ts +20 -0
  57. package/dist/components/DataTable/DataTablePagination.d.ts +11 -0
  58. package/dist/components/DataTable/TableBody/BulkActionBar.d.ts +8 -0
  59. package/dist/components/DataTable/TableBody/index.d.ts +4 -0
  60. package/dist/components/DataTable/TableBody/types.d.ts +32 -0
  61. package/dist/components/DataTable/TableCell/index.d.ts +3 -0
  62. package/dist/components/DataTable/TableCell/types.d.ts +12 -0
  63. package/dist/components/DataTable/TableFooter/index.d.ts +3 -0
  64. package/dist/components/DataTable/TableFooter/types.d.ts +10 -0
  65. package/dist/components/DataTable/TableHeader/FilterComponents.d.ts +59 -0
  66. package/dist/components/DataTable/TableHeader/handlers.d.ts +28 -0
  67. package/dist/components/DataTable/TableHeader/index.d.ts +3 -0
  68. package/dist/components/DataTable/TableHeader/types.d.ts +21 -0
  69. package/dist/components/DataTable/TableHeader/utils.d.ts +29 -0
  70. package/dist/components/DataTable/columnTypes.d.ts +87 -0
  71. package/dist/components/DataTable/dataTable.tokens.d.ts +174 -0
  72. package/dist/components/DataTable/index.d.ts +10 -0
  73. package/dist/components/DataTable/types.d.ts +230 -0
  74. package/dist/components/DataTable/utils.d.ts +52 -0
  75. package/dist/components/DateRangePicker/CalendarGrid.d.ts +11 -0
  76. package/dist/components/DateRangePicker/DateRangePicker.d.ts +4 -0
  77. package/dist/components/DateRangePicker/QuickRangeSelector.d.ts +13 -0
  78. package/dist/components/DateRangePicker/TimeSelector.d.ts +7 -0
  79. package/dist/components/DateRangePicker/dateRangePicker.tokens.d.ts +188 -0
  80. package/dist/components/DateRangePicker/index.d.ts +2 -0
  81. package/dist/components/DateRangePicker/types.d.ts +38 -0
  82. package/dist/components/DateRangePicker/utils.d.ts +470 -0
  83. package/dist/components/Directory/Directory.d.ts +6 -0
  84. package/dist/components/Directory/NavItem.d.ts +7 -0
  85. package/dist/components/Directory/Section.d.ts +3 -0
  86. package/dist/components/Directory/index.d.ts +2 -0
  87. package/dist/components/Directory/types.d.ts +29 -0
  88. package/dist/components/Directory/utils.d.ts +9 -0
  89. package/dist/components/Drawer/Drawer.d.ts +6 -0
  90. package/dist/components/Drawer/components/DrawerBase.d.ts +30 -0
  91. package/dist/components/Drawer/components/NestedSelectDrawer.d.ts +72 -0
  92. package/dist/components/Drawer/components/SelectDrawer.d.ts +9 -0
  93. package/dist/components/Drawer/components/StatusDrawer.d.ts +5 -0
  94. package/dist/components/Drawer/drawer.tokens.d.ts +60 -0
  95. package/dist/components/Drawer/index.d.ts +3 -0
  96. package/dist/components/Drawer/types.d.ts +384 -0
  97. package/dist/components/Dropdown/Dropdown.d.ts +9 -0
  98. package/dist/components/GradientBlur/GradientBlur.d.ts +2 -0
  99. package/dist/components/Inputs/DropdownInput/DropdownInput.d.ts +3 -0
  100. package/dist/components/Inputs/DropdownInput/dropdownInput.tokens.d.ts +33 -0
  101. package/dist/components/Inputs/DropdownInput/index.d.ts +2 -0
  102. package/dist/components/Inputs/DropdownInput/types.d.ts +31 -0
  103. package/dist/components/Inputs/MultiValueInput/MultiValueInput.d.ts +3 -0
  104. package/dist/components/Inputs/MultiValueInput/index.d.ts +2 -0
  105. package/dist/components/Inputs/MultiValueInput/multiValueInput.tokens.d.ts +33 -0
  106. package/dist/components/Inputs/MultiValueInput/types.d.ts +25 -0
  107. package/dist/components/Inputs/NumberInput/NumberInput.d.ts +3 -0
  108. package/dist/components/Inputs/NumberInput/index.d.ts +2 -0
  109. package/dist/components/Inputs/NumberInput/numberInput.tokens.d.ts +44 -0
  110. package/dist/components/Inputs/NumberInput/types.d.ts +16 -0
  111. package/dist/components/Inputs/OTPInput/OTPInput.d.ts +3 -0
  112. package/dist/components/Inputs/OTPInput/index.d.ts +2 -0
  113. package/dist/components/Inputs/OTPInput/otpInput.tokens.d.ts +34 -0
  114. package/dist/components/Inputs/OTPInput/types.d.ts +11 -0
  115. package/dist/components/Inputs/SearchInput/SearchInput.d.ts +3 -0
  116. package/dist/components/Inputs/SearchInput/index.d.ts +2 -0
  117. package/dist/components/Inputs/SearchInput/searchInput.tokens.d.ts +41 -0
  118. package/dist/components/Inputs/SearchInput/types.d.ts +7 -0
  119. package/dist/components/Inputs/TextArea/TextArea.d.ts +3 -0
  120. package/dist/components/Inputs/TextArea/index.d.ts +2 -0
  121. package/dist/components/Inputs/TextArea/textarea.token.d.ts +27 -0
  122. package/dist/components/Inputs/TextArea/types.d.ts +22 -0
  123. package/dist/components/Inputs/TextInput/TextInput.d.ts +3 -0
  124. package/dist/components/Inputs/TextInput/index.d.ts +2 -0
  125. package/dist/components/Inputs/TextInput/textInput.tokens.d.ts +33 -0
  126. package/dist/components/Inputs/TextInput/types.d.ts +24 -0
  127. package/dist/components/Inputs/UnitInput/UnitInput.d.ts +3 -0
  128. package/dist/components/Inputs/UnitInput/index.d.ts +2 -0
  129. package/dist/components/Inputs/UnitInput/types.d.ts +25 -0
  130. package/dist/components/Inputs/UnitInput/unitInput.tokens.d.ts +40 -0
  131. package/dist/components/Inputs/index.d.ts +8 -0
  132. package/dist/components/Inputs/utils/InputFooter/InputFooter.d.ts +8 -0
  133. package/dist/components/Inputs/utils/InputLabels/InputLabels.d.ts +18 -0
  134. package/dist/components/Menu/Menu.d.ts +8 -0
  135. package/dist/components/Menu/MenuGroupLabel.d.ts +3 -0
  136. package/dist/components/Menu/MenuItem.d.ts +9 -0
  137. package/dist/components/Menu/MenuPlayground.d.ts +3 -0
  138. package/dist/components/Menu/MenuPlaygroundComprehensive.d.ts +3 -0
  139. package/dist/components/Menu/SubMenu.d.ts +5 -0
  140. package/dist/components/Menu/index.d.ts +2 -0
  141. package/dist/components/Menu/menu.styles.d.ts +2 -0
  142. package/dist/components/Menu/menu.tokens.d.ts +100 -0
  143. package/dist/components/Menu/types.d.ts +55 -0
  144. package/dist/components/Menu/utils.d.ts +3 -0
  145. package/dist/components/Modal/Modal.d.ts +3 -0
  146. package/dist/components/Modal/index.d.ts +2 -0
  147. package/dist/components/Modal/modal.tokens.d.ts +48 -0
  148. package/dist/components/Modal/types.d.ts +22 -0
  149. package/dist/components/MultiSelect/MultiSelect.d.ts +3 -0
  150. package/dist/components/MultiSelect/MultiSelectMenu.d.ts +3 -0
  151. package/dist/components/MultiSelect/MultiSelectMenuItem.d.ts +10 -0
  152. package/dist/components/MultiSelect/MultiSelectSubMenu.d.ts +10 -0
  153. package/dist/components/MultiSelect/SelectAllItem.d.ts +8 -0
  154. package/dist/components/MultiSelect/index.d.ts +2 -0
  155. package/dist/components/MultiSelect/multiSelect.tokens.d.ts +77 -0
  156. package/dist/components/MultiSelect/types.d.ts +92 -0
  157. package/dist/components/MultiSelect/utils.d.ts +11 -0
  158. package/dist/components/Popover/Popover.d.ts +6 -0
  159. package/dist/components/Popover/PopoverFooter.d.ts +6 -0
  160. package/dist/components/Popover/PopoverHeader.d.ts +6 -0
  161. package/dist/components/Popover/index.d.ts +2 -0
  162. package/dist/components/Popover/popover.tokens.d.ts +40 -0
  163. package/dist/components/Popover/types.d.ts +31 -0
  164. package/dist/components/Primitives/Block/Block.d.ts +189 -0
  165. package/dist/components/Primitives/PrimitiveButton/PrimitiveButton.d.ts +131 -0
  166. package/dist/components/Primitives/PrimitiveInput/PrimitiveInput.d.ts +91 -0
  167. package/dist/components/Primitives/PrimitiveLink.d.ts +58 -0
  168. package/dist/components/Primitives/PrimitiveText/PrimitiveText.d.ts +39 -0
  169. package/dist/components/Primitives/PrimitiveTextArea.d.ts +88 -0
  170. package/dist/components/ProgressBar/ProgressBar.d.ts +4 -0
  171. package/dist/components/ProgressBar/index.d.ts +3 -0
  172. package/dist/components/ProgressBar/progressbar.tokens.d.ts +63 -0
  173. package/dist/components/ProgressBar/types.d.ts +22 -0
  174. package/dist/components/ProgressBar/utils.d.ts +7 -0
  175. package/dist/components/Radio/Radio.d.ts +6 -0
  176. package/dist/components/Radio/RadioGroup.d.ts +4 -0
  177. package/dist/components/Radio/StyledRadio.d.ts +7 -0
  178. package/dist/components/Radio/index.d.ts +4 -0
  179. package/dist/components/Radio/radio.token.d.ts +75 -0
  180. package/dist/components/Radio/types.d.ts +30 -0
  181. package/dist/components/Radio/utils.d.ts +47 -0
  182. package/dist/components/Select/Select.d.ts +25 -0
  183. package/dist/components/Select/SelectMenu.d.ts +3 -0
  184. package/dist/components/Select/index.d.ts +2 -0
  185. package/dist/components/Select/select.token.d.ts +40 -0
  186. package/dist/components/Select/types.d.ts +55 -0
  187. package/dist/components/Sidebar/Sidebar.d.ts +4 -0
  188. package/dist/components/Sidebar/index.d.ts +2 -0
  189. package/dist/components/Sidebar/types.d.ts +44 -0
  190. package/dist/components/SingleSelect/SingleSelect.d.ts +3 -0
  191. package/dist/components/SingleSelect/SingleSelectMenu.d.ts +21 -0
  192. package/dist/components/SingleSelect/index.d.ts +2 -0
  193. package/dist/components/SingleSelect/types.d.ts +26 -0
  194. package/dist/components/Slider/Slider.d.ts +5 -0
  195. package/dist/components/Slider/index.d.ts +3 -0
  196. package/dist/components/Slider/types.d.ts +30 -0
  197. package/dist/components/Slider/utils.d.ts +49 -0
  198. package/dist/components/Snackbar/Snackbar.d.ts +4 -0
  199. package/dist/components/Snackbar/index.d.ts +3 -0
  200. package/dist/components/Snackbar/snackbar.tokens.d.ts +52 -0
  201. package/dist/components/Snackbar/types.d.ts +26 -0
  202. package/dist/components/SplitTag/SplitTag.d.ts +6 -0
  203. package/dist/components/SplitTag/index.d.ts +2 -0
  204. package/dist/components/SplitTag/types.d.ts +16 -0
  205. package/dist/components/StatCard/StatCard.d.ts +6 -0
  206. package/dist/components/StatCard/index.d.ts +2 -0
  207. package/dist/components/StatCard/statcard.tokens.d.ts +145 -0
  208. package/dist/components/StatCard/types.d.ts +32 -0
  209. package/dist/components/Switch/StyledSwitch.d.ts +11 -0
  210. package/dist/components/Switch/Switch.d.ts +5 -0
  211. package/dist/components/Switch/SwitchGroup.d.ts +4 -0
  212. package/dist/components/Switch/index.d.ts +4 -0
  213. package/dist/components/Switch/switch.token.d.ts +112 -0
  214. package/dist/components/Switch/types.d.ts +30 -0
  215. package/dist/components/Switch/utils.d.ts +58 -0
  216. package/dist/components/Tabs/StyledTabs.d.ts +22 -0
  217. package/dist/components/Tabs/Tabs.d.ts +5 -0
  218. package/dist/components/Tabs/TabsContent.d.ts +2 -0
  219. package/dist/components/Tabs/TabsList.d.ts +8 -0
  220. package/dist/components/Tabs/TabsTrigger.d.ts +10 -0
  221. package/dist/components/Tabs/index.d.ts +6 -0
  222. package/dist/components/Tabs/tabs.token.d.ts +60 -0
  223. package/dist/components/Tabs/types.d.ts +34 -0
  224. package/dist/components/Tags/Tags.d.ts +3 -0
  225. package/dist/components/Tags/index.d.ts +2 -0
  226. package/dist/components/Tags/tag.tokens.d.ts +57 -0
  227. package/dist/components/Tags/types.d.ts +35 -0
  228. package/dist/components/Text/Text.d.ts +12 -0
  229. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  230. package/dist/components/Tooltip/index.d.ts +2 -0
  231. package/dist/components/Tooltip/tooltip.tokens.d.ts +31 -0
  232. package/dist/components/Tooltip/types.d.ts +33 -0
  233. package/dist/context/ThemeContext.d.ts +66 -0
  234. package/dist/context/ThemeProvider.d.ts +11 -0
  235. package/dist/context/index.d.ts +4 -0
  236. package/dist/context/initComponentTokens.d.ts +4 -0
  237. package/dist/context/useComponentToken.d.ts +29 -0
  238. package/dist/foundationToken.d.ts +214 -0
  239. package/dist/hooks/index.d.ts +2 -0
  240. package/dist/hooks/useBreakPoints.d.ts +4 -0
  241. package/dist/hooks/useClickOutside.d.ts +3 -0
  242. package/dist/hooks/useDebounce.d.ts +1 -0
  243. package/dist/hooks/useResizeObserver.d.ts +1 -0
  244. package/dist/hooks/useResponsiveTokens.d.ts +2 -0
  245. package/dist/hooks/useScrollLock.d.ts +2 -0
  246. package/dist/main.d.ts +34 -0
  247. package/dist/main.js +50499 -0
  248. package/dist/tokens/border.tokens.d.ts +29 -0
  249. package/dist/tokens/color.tokens.d.ts +16 -0
  250. package/dist/tokens/font.tokens.d.ts +72 -0
  251. package/dist/tokens/index.d.ts +2 -0
  252. package/dist/tokens/opacity.tokens.d.ts +18 -0
  253. package/dist/tokens/shadows.tokens.d.ts +15 -0
  254. package/dist/tokens/theme.token.d.ts +16 -0
  255. package/dist/tokens/unit.tokens.d.ts +34 -0
  256. package/package.json +99 -0
@@ -0,0 +1,29 @@
1
+ import { CSSObject } from 'styled-components';
2
+ type BorderWidthType = Readonly<{
3
+ 0: CSSObject['borderWidth'];
4
+ 1: CSSObject['borderWidth'];
5
+ 1.5: CSSObject['borderWidth'];
6
+ 2: CSSObject['borderWidth'];
7
+ 3: CSSObject['borderWidth'];
8
+ 4: CSSObject['borderWidth'];
9
+ [key: string]: CSSObject['borderWidth'];
10
+ }>;
11
+ type BorderRadiusType = Readonly<{
12
+ 0: CSSObject['borderRadius'];
13
+ 2: CSSObject['borderRadius'];
14
+ 4: CSSObject['borderRadius'];
15
+ 6: CSSObject['borderRadius'];
16
+ 8: CSSObject['borderRadius'];
17
+ 10: CSSObject['borderRadius'];
18
+ 12: CSSObject['borderRadius'];
19
+ 16: CSSObject['borderRadius'];
20
+ 20: CSSObject['borderRadius'];
21
+ full: CSSObject['borderRadius'];
22
+ [key: string]: CSSObject['borderRadius'];
23
+ }>;
24
+ export type BorderTokensType = Readonly<{
25
+ width: BorderWidthType;
26
+ radius: BorderRadiusType;
27
+ }>;
28
+ declare const borderTokens: BorderTokensType;
29
+ export default borderTokens;
@@ -0,0 +1,16 @@
1
+ import { CSSObject } from 'styled-components';
2
+ type ColorGroupType = Readonly<{
3
+ [key: string]: CSSObject['color'];
4
+ }>;
5
+ export type ColorTokensType = {
6
+ gray: ColorGroupType;
7
+ primary: ColorGroupType;
8
+ purple: ColorGroupType;
9
+ orange: ColorGroupType;
10
+ red: ColorGroupType;
11
+ green: ColorGroupType;
12
+ yellow: ColorGroupType;
13
+ [key: string]: ColorGroupType;
14
+ };
15
+ declare const colorTokens: ColorTokensType;
16
+ export default colorTokens;
@@ -0,0 +1,72 @@
1
+ import { CSSObject } from 'styled-components';
2
+ type FontWeightType = Readonly<{
3
+ 100: CSSObject['fontWeight'];
4
+ 200: CSSObject['fontWeight'];
5
+ 300: CSSObject['fontWeight'];
6
+ 400: CSSObject['fontWeight'];
7
+ 500: CSSObject['fontWeight'];
8
+ 600: CSSObject['fontWeight'];
9
+ 700: CSSObject['fontWeight'];
10
+ 800: CSSObject['fontWeight'];
11
+ 900: CSSObject['fontWeight'];
12
+ }>;
13
+ type FontFamilyType = Readonly<{
14
+ display: CSSObject['fontFamily'];
15
+ body: CSSObject['fontFamily'];
16
+ heading: CSSObject['fontFamily'];
17
+ mono: CSSObject['fontFamily'];
18
+ }>;
19
+ type LetterSpacingType = Readonly<{
20
+ compressed: CSSObject['letterSpacing'];
21
+ condensed: CSSObject['letterSpacing'];
22
+ normal: CSSObject['letterSpacing'];
23
+ expanded: CSSObject['letterSpacing'];
24
+ extended: CSSObject['letterSpacing'];
25
+ }>;
26
+ export type FontGroupType = Readonly<{
27
+ fontSize: CSSObject['fontSize'];
28
+ lineHeight: CSSObject['lineHeight'];
29
+ letterSpacing: CSSObject['letterSpacing'];
30
+ }>;
31
+ type FontSizeType = Readonly<{
32
+ base: CSSObject['fontSize'];
33
+ body: {
34
+ xs: FontGroupType;
35
+ sm: FontGroupType;
36
+ md: FontGroupType;
37
+ lg: FontGroupType;
38
+ };
39
+ heading: {
40
+ sm: FontGroupType;
41
+ md: FontGroupType;
42
+ lg: FontGroupType;
43
+ xl: FontGroupType;
44
+ '2xl': FontGroupType;
45
+ };
46
+ display: {
47
+ sm: FontGroupType;
48
+ md: FontGroupType;
49
+ lg: FontGroupType;
50
+ xl: FontGroupType;
51
+ };
52
+ code: {
53
+ sm: FontGroupType;
54
+ md: FontGroupType;
55
+ lg: FontGroupType;
56
+ };
57
+ }>;
58
+ export type FontTokensType = Readonly<{
59
+ family: FontFamilyType;
60
+ weight: FontWeightType;
61
+ letterSpacing: LetterSpacingType;
62
+ size: FontSizeType;
63
+ }>;
64
+ /**
65
+ * Font tokens
66
+ * @description
67
+ * Font tokens are used to define the font family, weight, size, and letter spacing.
68
+ * @warning
69
+ * Whenever changing the font tokens, make sure to handle it in the Text Component as well.
70
+ */
71
+ declare const fontTokens: FontTokensType;
72
+ export default fontTokens;
@@ -0,0 +1,2 @@
1
+ export { default as FOUNDATION_THEME } from './theme.token';
2
+ export type { FoundationTokenType as ThemeType } from './theme.token';
@@ -0,0 +1,18 @@
1
+ import { CSSObject } from 'styled-components';
2
+ export type OpacityTokensType = Readonly<{
3
+ 0: CSSObject['opacity'];
4
+ 5: CSSObject['opacity'];
5
+ 10: CSSObject['opacity'];
6
+ 20: CSSObject['opacity'];
7
+ 30: CSSObject['opacity'];
8
+ 40: CSSObject['opacity'];
9
+ 50: CSSObject['opacity'];
10
+ 60: CSSObject['opacity'];
11
+ 70: CSSObject['opacity'];
12
+ 80: CSSObject['opacity'];
13
+ 90: CSSObject['opacity'];
14
+ 100: CSSObject['opacity'];
15
+ [key: string]: CSSObject['opacity'];
16
+ }>;
17
+ declare const opacityTokens: OpacityTokensType;
18
+ export default opacityTokens;
@@ -0,0 +1,15 @@
1
+ import { CSSObject } from 'styled-components';
2
+ export type ShadowTokensType = Readonly<{
3
+ xs: CSSObject['boxShadow'];
4
+ sm: CSSObject['boxShadow'];
5
+ md: CSSObject['boxShadow'];
6
+ lg: CSSObject['boxShadow'];
7
+ xl: CSSObject['boxShadow'];
8
+ '2xl': CSSObject['boxShadow'];
9
+ full: CSSObject['boxShadow'];
10
+ focusPrimary: CSSObject['boxShadow'];
11
+ focusError: CSSObject['boxShadow'];
12
+ [key: string]: CSSObject['boxShadow'];
13
+ }>;
14
+ declare const shadowTokens: ShadowTokensType;
15
+ export default shadowTokens;
@@ -0,0 +1,16 @@
1
+ import { ShadowTokensType } from './shadows.tokens';
2
+ import { BorderTokensType } from './border.tokens';
3
+ import { FontTokensType } from './font.tokens';
4
+ import { OpacityTokensType } from './opacity.tokens';
5
+ import { UnitTokensType } from './unit.tokens';
6
+ import { ColorTokensType } from './color.tokens';
7
+ export type FoundationTokenType = {
8
+ shadows: ShadowTokensType;
9
+ border: BorderTokensType;
10
+ font: FontTokensType;
11
+ opacity: OpacityTokensType;
12
+ unit: UnitTokensType;
13
+ colors: ColorTokensType;
14
+ };
15
+ declare const FOUNDATION_THEME: FoundationTokenType;
16
+ export default FOUNDATION_THEME;
@@ -0,0 +1,34 @@
1
+ import { CSSObject } from 'styled-components';
2
+ type UnitType = CSSObject['width'] | CSSObject['height'] | CSSObject['gap'] | CSSObject['padding'] | CSSObject['margin'];
3
+ export type UnitTokensType = Readonly<{
4
+ 0: UnitType;
5
+ 1: UnitType;
6
+ 2: UnitType;
7
+ 3: UnitType;
8
+ 4: UnitType;
9
+ 5: UnitType;
10
+ 6: UnitType;
11
+ 7: UnitType;
12
+ 8: UnitType;
13
+ 9: UnitType;
14
+ 10: UnitType;
15
+ 12: UnitType;
16
+ 14: UnitType;
17
+ 16: UnitType;
18
+ 18: UnitType;
19
+ 20: UnitType;
20
+ 22: UnitType;
21
+ 24: UnitType;
22
+ 28: UnitType;
23
+ 32: UnitType;
24
+ 36: UnitType;
25
+ 40: UnitType;
26
+ 48: UnitType;
27
+ 52: UnitType;
28
+ 56: UnitType;
29
+ 64: UnitType;
30
+ auto: UnitType;
31
+ [key: string]: UnitType;
32
+ }>;
33
+ declare const unitTokens: UnitTokensType;
34
+ export default unitTokens;
package/package.json ADDED
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "@juspay/blend-design-system",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "description": "A comprehensive React component library and design system by Juspay",
6
+ "type": "module",
7
+ "main": "./dist/main.js",
8
+ "module": "./dist/main.js",
9
+ "types": "./dist/main.d.ts",
10
+ "files": [
11
+ "dist",
12
+ "README.md"
13
+ ],
14
+ "sideEffects": false,
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/main.js",
18
+ "types": "./dist/main.d.ts"
19
+ },
20
+ "./style.css": "./dist/style.css"
21
+ },
22
+ "scripts": {
23
+ "lint": "eslint .",
24
+ "build": "pnpm lint && tsc --p ./tsconfig.json && vite build",
25
+ "prepublishOnly": "pnpm run build"
26
+ },
27
+ "peerDependencies": {
28
+ "react": "^18.0.0 || ^19.0.0",
29
+ "react-dom": "^18.0.0 || ^19.0.0"
30
+ },
31
+ "dependencies": {
32
+ "@radix-ui/react-accordion": "^1.2.3",
33
+ "@radix-ui/react-checkbox": "^1.3.2",
34
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
35
+ "@radix-ui/react-popover": "^1.1.14",
36
+ "@radix-ui/react-slider": "^1.2.3",
37
+ "@radix-ui/react-tabs": "^1.0.4",
38
+ "@radix-ui/react-tooltip": "^1.2.7",
39
+ "@types/styled-components": "^5.1.34",
40
+ "lucide-react": "^0.511.0",
41
+ "radix-ui": "^1.1.3",
42
+ "recharts": "^2.15.3",
43
+ "sonner": "^2.0.3",
44
+ "styled-components": "^6.1.18",
45
+ "vaul": "^1.1.2"
46
+ },
47
+ "devDependencies": {
48
+ "@eslint/js": "^9.25.0",
49
+ "@storybook/addon-essentials": "^8.6.12",
50
+ "@storybook/addon-interactions": "^8.6.12",
51
+ "@storybook/addon-onboarding": "^8.6.12",
52
+ "@storybook/blocks": "^8.6.12",
53
+ "@storybook/react": "^8.6.12",
54
+ "@storybook/react-vite": "^8.6.12",
55
+ "@storybook/test": "^8.6.12",
56
+ "@types/node": "^22.15.21",
57
+ "@types/react": "^19.1.2",
58
+ "@types/react-dom": "^19.1.2",
59
+ "@vitejs/plugin-react": "^4.4.1",
60
+ "eslint": "^9.25.0",
61
+ "eslint-plugin-react-hooks": "^5.2.0",
62
+ "eslint-plugin-react-refresh": "^0.4.19",
63
+ "eslint-plugin-storybook": "^0.12.0",
64
+ "globals": "^16.0.0",
65
+ "prettier": "^3.1.0",
66
+ "react": "^19.1.0",
67
+ "react-dom": "^19.1.0",
68
+ "storybook": "^8.6.12",
69
+ "typescript": "~5.8.3",
70
+ "typescript-eslint": "^8.30.1",
71
+ "vite": "^6.3.5",
72
+ "vite-plugin-dts": "^4.5.4",
73
+ "vite-plugin-lib-inject-css": "^2.2.2"
74
+ },
75
+ "keywords": [
76
+ "react",
77
+ "ui",
78
+ "components",
79
+ "design-system",
80
+ "blend",
81
+ "juspay"
82
+ ],
83
+ "author": "Juspay",
84
+ "license": "MIT",
85
+ "homepage": "https://juspay.design/",
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "https://github.com/juspay/blend-design-system.git"
89
+ },
90
+ "bugs": {
91
+ "url": "https://github.com/juspay/blend-design-system/issues"
92
+ },
93
+ "eslintConfig": {
94
+ "extends": [
95
+ "plugin:storybook/recommended"
96
+ ]
97
+ },
98
+ "packageManager": "pnpm@10.11.0"
99
+ }