@altruist03/ui 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/assets/images/noData.webp +0 -0
  2. package/dist/index.js +15318 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/noData-XPRHKMFR.webp +0 -0
  5. package/package.json +51 -4
  6. package/src/ThemeProvider/ThemeContext.tsx +75 -0
  7. package/src/ThemeProvider/index.ts +7 -0
  8. package/src/assets/images/noData.webp +0 -0
  9. package/src/assets.d.ts +10 -0
  10. package/src/components/Accordion/Accordion.stories.tsx +64 -0
  11. package/src/components/Accordion/Accordion.tsx +219 -0
  12. package/src/components/Accordion/Accordion.types.ts +16 -0
  13. package/src/components/Avatar/Avatar.stories.tsx +304 -0
  14. package/src/components/Avatar/Avatar.tsx +211 -0
  15. package/src/components/Avatar/Avatar.types.ts +33 -0
  16. package/src/components/Badge/Badge.stories.tsx +143 -0
  17. package/src/components/Badge/Badge.tsx +138 -0
  18. package/src/components/Badge/Badge.types.ts +24 -0
  19. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +114 -0
  20. package/src/components/Breadcrumb/Breadcrumb.tsx +120 -0
  21. package/src/components/Breadcrumb/Breadcrumb.types.ts +22 -0
  22. package/src/components/Button/Button.stories.tsx +457 -0
  23. package/src/components/Button/Button.tsx +202 -0
  24. package/src/components/Button/Button.types.ts +18 -0
  25. package/src/components/Checkbox/Checkbox.stories.tsx +254 -0
  26. package/src/components/Checkbox/Checkbox.tsx +352 -0
  27. package/src/components/Checkbox/Checkbox.types.ts +123 -0
  28. package/src/components/CloseButton/CloseButton.stories.tsx +100 -0
  29. package/src/components/CloseButton/CloseButton.tsx +117 -0
  30. package/src/components/CloseButton/CloseButton.types.ts +15 -0
  31. package/src/components/CollapsibleSearch/CollapsibleSearch.tsx +120 -0
  32. package/src/components/DataTable/DataTable.stories.tsx +233 -0
  33. package/src/components/DataTable/DataTable.tsx +968 -0
  34. package/src/components/DataTable/DataTable.types.ts +49 -0
  35. package/src/components/DatePicker/DatePicker.stories.tsx +341 -0
  36. package/src/components/DatePicker/DatePicker.tsx +669 -0
  37. package/src/components/DatePicker/DatePicker.types.ts +105 -0
  38. package/src/components/DatePicker/DateTimePicker.tsx +35 -0
  39. package/src/components/DateRangePicker/DateRangePicker.tsx +179 -0
  40. package/src/components/DateRangePicker/DateRangePicker.types.ts +34 -0
  41. package/src/components/Drawer/Drawer.stories.tsx +243 -0
  42. package/src/components/Drawer/Drawer.tsx +196 -0
  43. package/src/components/Drawer/Drawer.types.ts +60 -0
  44. package/src/components/FileUpload/FileUpload.stories.tsx +162 -0
  45. package/src/components/FileUpload/FileUpload.tsx +216 -0
  46. package/src/components/FileUpload/FileUpload.types.ts +80 -0
  47. package/src/components/FilterPopover/FilterPopover.stories.tsx +173 -0
  48. package/src/components/FilterPopover/FilterPopover.tsx +310 -0
  49. package/src/components/FilterPopover/FilterPopover.types.ts +26 -0
  50. package/src/components/ImageViewer/ImageViewerToolbar.jsx +81 -0
  51. package/src/components/ImageViewer/useImagePanRotate.js +102 -0
  52. package/src/components/IpWhitelistField/IpWhitelistField.stories.tsx +138 -0
  53. package/src/components/IpWhitelistField/IpWhitelistField.tsx +164 -0
  54. package/src/components/IpWhitelistField/IpWhitelistField.types.ts +42 -0
  55. package/src/components/Loader/Loader.stories.tsx +95 -0
  56. package/src/components/Loader/Loader.tsx +132 -0
  57. package/src/components/Loader/Loader.types.ts +6 -0
  58. package/src/components/Menu/Menu.tsx +143 -0
  59. package/src/components/Menu/Menu.types.ts +28 -0
  60. package/src/components/MenuButton/MenuButton.stories.tsx +140 -0
  61. package/src/components/MenuButton/MenuButton.tsx +45 -0
  62. package/src/components/MenuButton/MenuButton.types.ts +21 -0
  63. package/src/components/Modal/Modal.stories.tsx +266 -0
  64. package/src/components/Modal/Modal.tsx +399 -0
  65. package/src/components/Modal/index.ts +2 -0
  66. package/src/components/Modal/types.ts +126 -0
  67. package/src/components/Pagination/Pagination.stories.tsx +167 -0
  68. package/src/components/Pagination/Pagination.tsx +266 -0
  69. package/src/components/Pagination/Pagination.types.ts +20 -0
  70. package/src/components/PeriodSelector/PeriodSelector.stories.tsx +50 -0
  71. package/src/components/PeriodSelector/PeriodSelector.tsx +47 -0
  72. package/src/components/PeriodSelector/PeriodSelector.types.ts +10 -0
  73. package/src/components/PhoneField/PhoneField.stories.tsx +141 -0
  74. package/src/components/PhoneField/PhoneField.tsx +284 -0
  75. package/src/components/PhoneField/PhoneField.types.ts +89 -0
  76. package/src/components/PhoneField/countryCodes.ts +236 -0
  77. package/src/components/Progress/Progress.stories.tsx +83 -0
  78. package/src/components/Progress/Progress.tsx +91 -0
  79. package/src/components/Progress/Progress.types.ts +22 -0
  80. package/src/components/RadioButton/RadioButton.stories.tsx +332 -0
  81. package/src/components/RadioButton/RadioButton.tsx +427 -0
  82. package/src/components/RadioButton/RadioButton.types.ts +117 -0
  83. package/src/components/ReportCard/ReportCard.tsx +183 -0
  84. package/src/components/ReportCard/ReportCard.types.ts +17 -0
  85. package/src/components/SectionIcon/SectionIcon.tsx +87 -0
  86. package/src/components/SectionIcon/SectionIcon.types.ts +23 -0
  87. package/src/components/SegmentedInputField/SegmentedInputField.stories.tsx +165 -0
  88. package/src/components/SegmentedInputField/SegmentedInputField.tsx +174 -0
  89. package/src/components/SegmentedInputField/SegmentedInputField.types.ts +51 -0
  90. package/src/components/SelectScroll/SelectScroll.stories.tsx +336 -0
  91. package/src/components/SelectScroll/SelectScroll.tsx +1119 -0
  92. package/src/components/SelectScroll/SelectScroll.types.ts +60 -0
  93. package/src/components/Selector/Selector.stories.tsx +382 -0
  94. package/src/components/Selector/Selector.tsx +1310 -0
  95. package/src/components/Selector/Selector.types.ts +71 -0
  96. package/src/components/Skeleton/Skeleton.stories.tsx +133 -0
  97. package/src/components/Skeleton/Skeleton.tsx +20 -0
  98. package/src/components/Skeleton/Skeleton.types.ts +3 -0
  99. package/src/components/Spinner/Spinner.stories.tsx +84 -0
  100. package/src/components/Spinner/Spinner.tsx +79 -0
  101. package/src/components/Spinner/Spinner.types.ts +8 -0
  102. package/src/components/StatCard/StatCard.stories.tsx +125 -0
  103. package/src/components/StatCard/StatCard.tsx +167 -0
  104. package/src/components/StatCard/StatCard.types.ts +20 -0
  105. package/src/components/StatusBadge/StatusBadge.stories.tsx +179 -0
  106. package/src/components/StatusBadge/StatusBadge.tsx +74 -0
  107. package/src/components/StatusBadge/StatusBadge.types.ts +23 -0
  108. package/src/components/Stepper/Stepper.stories.tsx +85 -0
  109. package/src/components/Stepper/Stepper.tsx +138 -0
  110. package/src/components/Stepper/Stepper.types.ts +16 -0
  111. package/src/components/SubTabs/SubTabs.stories.tsx +128 -0
  112. package/src/components/SubTabs/SubTabs.tsx +279 -0
  113. package/src/components/SubTabs/SubTabs.types.ts +44 -0
  114. package/src/components/SummaryCard/SummaryCard.stories.tsx +100 -0
  115. package/src/components/SummaryCard/SummaryCard.tsx +141 -0
  116. package/src/components/SummaryCard/SummaryCard.types.ts +22 -0
  117. package/src/components/Switch/Switch.stories.tsx +59 -0
  118. package/src/components/Switch/Switch.tsx +217 -0
  119. package/src/components/Switch/Switch.types.ts +22 -0
  120. package/src/components/Tabs/Tabs.stories.tsx +178 -0
  121. package/src/components/Tabs/Tabs.tsx +197 -0
  122. package/src/components/Tabs/Tabs.types.ts +34 -0
  123. package/src/components/TextField/TextField.stories.tsx +249 -0
  124. package/src/components/TextField/TextField.tsx +462 -0
  125. package/src/components/TextField/TextField.types.ts +141 -0
  126. package/src/components/Toast/Toast.stories.tsx +237 -0
  127. package/src/components/Toast/Toast.tsx +246 -0
  128. package/src/components/Toast/Toast.types.ts +31 -0
  129. package/src/components/ToggleButton/ToggleButton.stories.tsx +105 -0
  130. package/src/components/ToggleButton/ToggleButton.tsx +267 -0
  131. package/src/components/ToggleButton/ToggleButton.types.ts +19 -0
  132. package/src/components/UploadDropzone/UploadDropzone.jsx +78 -0
  133. package/src/components/UploadDropzone2/UploadDropzone.stories.tsx +94 -0
  134. package/src/components/UploadDropzone2/UploadDropzone.tsx +222 -0
  135. package/src/components/UploadDropzone2/UploadDropzone.types.ts +54 -0
  136. package/src/components/ViewEditToggle/ViewEditToggle.stories.tsx +40 -0
  137. package/src/components/ViewEditToggle/ViewEditToggle.tsx +239 -0
  138. package/src/components/ViewEditToggle/ViewEditToggle.types.ts +27 -0
  139. package/src/components/index.ts +157 -0
  140. package/src/icons/ReportDollarIcon.tsx +71 -0
  141. package/src/icons/index.ts +27 -0
  142. package/src/index.ts +214 -0
  143. package/src/storybook/preview.tsx +64 -0
  144. package/src/theme/index.ts +4 -0
  145. package/src/theme/types.d.ts +1 -0
  146. package/src/themes/cpc.ts +4 -0
  147. package/src/themes/firebird.ts +4 -0
  148. package/src/tokens/brands/cpc/themes/dark.json +82 -0
  149. package/src/tokens/brands/cpc/themes/light.json +1 -0
  150. package/src/tokens/brands/default/brand.json +20 -0
  151. package/src/tokens/brands/firebird/themes/dark.json +28 -0
  152. package/src/tokens/brands/firebird/themes/light.json +20 -0
  153. package/src/tokens/button.ts +24 -0
  154. package/src/tokens/components/accordion.json +52 -0
  155. package/src/tokens/components/avatar.json +40 -0
  156. package/src/tokens/components/badge.json +41 -0
  157. package/src/tokens/components/breadcrumb.json +13 -0
  158. package/src/tokens/components/button.json +67 -0
  159. package/src/tokens/components/card.json +39 -0
  160. package/src/tokens/components/checkbox.json +64 -0
  161. package/src/tokens/components/closebutton.json +55 -0
  162. package/src/tokens/components/datatable.json +40 -0
  163. package/src/tokens/components/datepicker.json +99 -0
  164. package/src/tokens/components/drawer.json +23 -0
  165. package/src/tokens/components/field.json +29 -0
  166. package/src/tokens/components/fileupload.json +57 -0
  167. package/src/tokens/components/filterpopover.json +29 -0
  168. package/src/tokens/components/input.json +31 -0
  169. package/src/tokens/components/ipwhitelistfield.json +16 -0
  170. package/src/tokens/components/loader.json +15 -0
  171. package/src/tokens/components/menu.json +21 -0
  172. package/src/tokens/components/modal.json +25 -0
  173. package/src/tokens/components/pagination.json +45 -0
  174. package/src/tokens/components/phonefield.json +41 -0
  175. package/src/tokens/components/progress.json +12 -0
  176. package/src/tokens/components/radio.json +87 -0
  177. package/src/tokens/components/reportcard.json +17 -0
  178. package/src/tokens/components/selector.json +87 -0
  179. package/src/tokens/components/selectscroll.json +65 -0
  180. package/src/tokens/components/skeleton.json +6 -0
  181. package/src/tokens/components/stepper.json +38 -0
  182. package/src/tokens/components/subtabs.json +45 -0
  183. package/src/tokens/components/switch.json +55 -0
  184. package/src/tokens/components/tabs.json +38 -0
  185. package/src/tokens/components/textfield.json +59 -0
  186. package/src/tokens/components/togglebutton.json +48 -0
  187. package/src/tokens/components/uploaddropzone.json +61 -0
  188. package/src/tokens/drawer.ts +37 -0
  189. package/src/tokens/foundation/breakpoints.json +10 -0
  190. package/src/tokens/foundation/colors.json +122 -0
  191. package/src/tokens/foundation/opacity.json +16 -0
  192. package/src/tokens/foundation/radius.json +14 -0
  193. package/src/tokens/foundation/size.json +38 -0
  194. package/src/tokens/foundation/spacing.json +19 -0
  195. package/src/tokens/foundation/typography.json +43 -0
  196. package/src/tokens/index.ts +3665 -0
  197. package/src/tokens/modal.ts +42 -0
  198. package/src/tokens/semantic/color.json +148 -0
  199. package/src/tokens/semantic/field.json +28 -0
  200. package/src/tokens/semantic/opacity.json +5 -0
  201. package/src/tokens/semantic/size.json +722 -0
  202. package/src/tokens/semantic/spacing.json +27 -0
  203. package/src/tokens/semantic/typography.json +87 -0
  204. package/src/utils/scrollLock.ts +44 -0
  205. package/README.md +0 -3
@@ -0,0 +1,57 @@
1
+ {
2
+ "fileupload": {
3
+ "size": {
4
+ "sm": {
5
+ "height": "{semantic.size.sm.height}",
6
+ "padding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
7
+ "fontSize": "{semantic.size.sm.fontSize}",
8
+ "borderRadius": "{radius.lg}"
9
+ },
10
+ "md": {
11
+ "height": "{semantic.size.md.height}",
12
+ "padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
13
+ "fontSize": "{semantic.size.md.fontSize}",
14
+ "borderRadius": "{radius.xl}"
15
+ },
16
+ "lg": {
17
+ "height": "{semantic.size.lg.height}",
18
+ "padding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
19
+ "fontSize": "{semantic.size.lg.fontSize}",
20
+ "borderRadius": "{radius.xl}"
21
+ }
22
+ },
23
+ "container": {
24
+ "borderRadius": "{radius.xl}",
25
+ "background": "{color.background.default}",
26
+ "backgroundWhite": "{colors.white}",
27
+ "border": "1px solid {color.border.transparent}",
28
+ "borderFocus": "{semantic.field.border.focus}",
29
+ "borderError": "{semantic.field.border.error}",
30
+ "gap": "{spacing.3}"
31
+ },
32
+ "label": {
33
+ "fontSize": "{typography.label.medium.fontSize}",
34
+ "fontWeight": "{typography.label.medium.fontWeight}",
35
+ "fontFamily": "{typography.label.medium.fontFamily}",
36
+ "color": "{semantic.field.labelColor}",
37
+ "requiredColor": "{semantic.field.labelRequiredColor}",
38
+ "marginBottom": "{spacing.2}"
39
+ },
40
+ "button": {
41
+ "fontWeight": "{typography.label.medium.fontWeight}",
42
+ "fontFamily": "{typography.body.medium.fontFamily}",
43
+ "color": "{color.text.fileupload}",
44
+ "background": "{color.background.default}",
45
+ "border": "{color.border.default}",
46
+ "borderRadius": "{radius.md}"
47
+ },
48
+ "placeholder": {
49
+ "fontFamily": "{typography.body.medium.fontFamily}",
50
+ "fontSize": "{typography.body.medium.fontSize}",
51
+ "color": "{color.text.secondary}"
52
+ },
53
+ "disabled": {
54
+ "opacity": "{semantic.opacity.disabled}"
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "filterpopover": {
3
+ "minWidth": "{size.filterpopover.minWidth}",
4
+ "minHeight": "{size.filterpopover.minHeight}",
5
+ "padding": "{size.filterpopover.padding}",
6
+ "borderRadius": "{size.filterpopover.borderRadius}",
7
+ "innerBorderRadius": "{size.filterpopover.innerBorderRadius}",
8
+ "background": "{color.background.filterpopover}",
9
+ "border": "1px solid {color.border.default}",
10
+ "boxShadow": "0px 3px 15px -3px rgba(16, 24, 40, 0.1), 0px 2px 8px -4px rgba(16, 24, 40, 0.1)",
11
+ "header": {
12
+ "background": "{color.background.warm}",
13
+ "padding": "{spacing.4}",
14
+ "titleFontSize": "{typography.fontSize.md}",
15
+ "titleFontWeight": "{typography.fontWeight.medium}",
16
+ "titleColor": "{color.text.primary}",
17
+ "marginBottom": "{spacing.0}"
18
+ },
19
+ "content": {
20
+ "padding": "{spacing.4}",
21
+ "gap": "{spacing.3}"
22
+ },
23
+ "footer": {
24
+ "padding": "{spacing.4}",
25
+ "gap": "{spacing.4}",
26
+ "marginTop": "{spacing.0}"
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "input": {
3
+ "height": "{semantic.size.md.height}",
4
+ "borderRadius": "{semantic.size.md.radius}",
5
+ "fontFamily": "{typography.body.medium.fontFamily}",
6
+ "fontSize": "{semantic.size.md.fontSize}",
7
+ "label": {
8
+ "fontSize": "{typography.label.medium.fontSize}",
9
+ "activeFontSize": "{typography.label.medium.fontSize}",
10
+ "color": "{color.text.tertiary}",
11
+ "activeColor": "{color.primary.default}"
12
+ },
13
+ "helper": {
14
+ "fontSize": "{typography.body.small.fontSize}"
15
+ },
16
+ "textColor": "{color.text.primary}",
17
+ "outline": {
18
+ "default": "{color.border.default}",
19
+ "active": "{color.border.active}",
20
+ "error": "{color.error.default}"
21
+ },
22
+ "error": {
23
+ "color": "{color.error.default}"
24
+ },
25
+ "background": "{color.background.default}",
26
+ "padding": {
27
+ "sm": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
28
+ "md": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "ipwhitelistfield": {
3
+ "label": {
4
+ "marginTop": "{spacing.3}",
5
+ "color": "{semantic.field.labelColor}",
6
+ "requiredColor": "{semantic.field.labelRequiredColor}",
7
+ "requiredGap": "{spacing.1}"
8
+ },
9
+ "row": {
10
+ "marginTop": "{spacing.4}",
11
+ "groupGap": "{spacing.3}",
12
+ "buttonsGap": "{spacing.2}",
13
+ "width": "{semantic.field.otpWidth}"
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "loader": {
3
+ "backdrop": {
4
+ "background": "{colors.black}",
5
+ "opacity": "{semantic.opacity.disabled}",
6
+ "zIndex": "9999"
7
+ },
8
+ "dot": {
9
+ "color": "{color.primary.default}",
10
+ "size": "{spacing.1}",
11
+ "activeSpread": "{spacing.1_25}",
12
+ "gap": "{spacing.5}"
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "menu": {
3
+ "minWidth": "{size.menu.minWidth}",
4
+ "borderRadius": "{radius.2xl}",
5
+ "padding": "{spacing.component.md}",
6
+ "marginTop": "{spacing.component.md}",
7
+ "itemPaddingY": "{spacing.component.md}",
8
+ "itemPaddingX": "{spacing.component.lg}",
9
+ "itemIconLabelGap": "{spacing.component.md}",
10
+ "itemBorderRadius": "{radius.control}",
11
+ "fontFamily": "{typography.body.large.fontFamily}",
12
+ "fontSize": "{typography.body.large.fontSize}",
13
+ "fontWeight": "{typography.body.large.fontWeight}",
14
+ "lineHeight": "{typography.body.large.lineHeight}",
15
+ "textColor": "{color.text.primary}",
16
+ "selectedBackground": "{color.background.secondary}",
17
+ "hoverBackground": "{color.background.tertiary}",
18
+ "background": "{color.background.default}",
19
+ "listMaxHeight": "{size.menu.listMaxHeight}"
20
+ }
21
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "modal": {
3
+ "background": "{color.background.dropdown}",
4
+ "backdrop": {
5
+ "background": "{color.background.overlay}",
6
+ "opacityVisible": "1",
7
+ "opacityHidden": "0"
8
+ },
9
+ "radius": "{radius.md}",
10
+ "padding": "{spacing.component.lg}",
11
+ "title": {
12
+ "background": "{color.background.modalHeader}",
13
+ "color": "{color.text.tableHeader}",
14
+ "typography": "{typography.heading.h4}"
15
+ },
16
+ "size": {
17
+ "sm": {
18
+ "width": "{size.modal.sm.width}"
19
+ },
20
+ "lg": {
21
+ "width": "{size.modal.lg.width}"
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "pagination": {
3
+ "size": {
4
+ "xs": {
5
+ "height": "{semantic.size.xs.height}",
6
+ "minWidth": "{semantic.size.xs.width}",
7
+ "padding": "{semantic.size.xs.paddingY} {semantic.size.xs.paddingX}",
8
+ "fontSize": "{typography.body.medium.fontSize}",
9
+ "borderRadius": "{semantic.size.lg.radius}"
10
+ },
11
+ "sm": {
12
+ "height": "{semantic.size.sm.height}",
13
+ "minWidth": "{semantic.size.sm.height}",
14
+ "padding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
15
+ "fontSize": "{semantic.size.sm.fontSize}",
16
+ "borderRadius": "{semantic.size.lg.radius}"
17
+ },
18
+ "md": {
19
+ "height": "{semantic.size.md.height}",
20
+ "minWidth": "{semantic.size.md.height}",
21
+ "padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
22
+ "fontSize": "{semantic.size.md.fontSize}",
23
+ "borderRadius": "{semantic.size.lg.radius}"
24
+ },
25
+ "lg": {
26
+ "height": "{semantic.size.lg.height}",
27
+ "minWidth": "{semantic.size.lg.height}",
28
+ "padding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
29
+ "fontSize": "{semantic.size.lg.fontSize}",
30
+ "borderRadius": "{semantic.size.lg.radius}"
31
+ }
32
+ },
33
+ "item": {
34
+ "activeBackground": "{color.primary.default}",
35
+ "activeColor": "{color.text.inverse}",
36
+ "inactiveColor": "{color.text.primary}",
37
+ "iconColor": "{color.text.primary}",
38
+ "hoverBackground": "{color.background.tertiary}",
39
+ "disabledOpacity": "{semantic.opacity.disabled}"
40
+ },
41
+ "gap": "{spacing.2}",
42
+ "fontFamily": "{typography.body.medium.fontFamily}",
43
+ "fontWeight": "{typography.label.medium.fontWeight}"
44
+ }
45
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "phonefield": {
3
+ "size": {
4
+ "sm": {
5
+ "borderRadius": "{radius.md}",
6
+ "selectorWidth": "100"
7
+ },
8
+ "md": {
9
+ "borderRadius": "{radius.md}",
10
+ "selectorWidth": "110"
11
+ },
12
+ "lg": {
13
+ "borderRadius": "{radius.md}",
14
+ "selectorWidth": "120"
15
+ }
16
+ },
17
+ "label": {
18
+ "fontSize": "{typography.label.medium.fontSize}",
19
+ "fontWeight": "{typography.label.medium.fontWeight}",
20
+ "marginBottom": "{spacing.2}",
21
+ "color": "{color.text.primary}",
22
+ "requiredColor": "{color.error.default}"
23
+ },
24
+ "container": {
25
+ "border": "2px solid {color.border.transparent}",
26
+ "borderError": "2px solid {color.error.default}"
27
+ },
28
+ "selector": {
29
+ "background": "{colors.background.default}",
30
+ "backgroundWhite": "{colors.white}",
31
+ "borderRight": "1px solid {color.border.default}"
32
+ },
33
+ "fontFamily": "{typography.body.medium.fontFamily}",
34
+ "outline": {
35
+ "default": "{color.border.transparent}",
36
+ "active": "{color.border.active}",
37
+ "error": "{color.error.default}"
38
+ },
39
+ "disabledOpacity": "{semantic.opacity.disabled}"
40
+ }
41
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "progress": {
3
+ "height": "{size.8}",
4
+ "borderRadius": "{radius.md}",
5
+ "track": {
6
+ "background": "{color.primary.light}"
7
+ },
8
+ "bar": {
9
+ "background": "{color.primary.default}"
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "radio": {
3
+ "heading": {
4
+ "fontSize": "{typography.label.medium.fontSize}",
5
+ "fontWeight": "{typography.label.medium.fontWeight}",
6
+ "fontFamily": "{typography.fontFamily.sans}",
7
+ "color": "{color.text.primary}",
8
+ "marginBottom": "{spacing.2}"
9
+ },
10
+ "label": {
11
+ "fontSize": "{typography.body.medium.fontSize}",
12
+ "fontWeight": "{typography.radio.label.fontWeight}",
13
+ "fontFamily": "{typography.radio.label.fontFamily}",
14
+ "color": {
15
+ "active": "{color.radio.label.color.active}",
16
+ "inactive": "{color.radio.label.color.inactive}"
17
+ },
18
+ "marginBottom": "{spacing.0}",
19
+ "marginLeft": "{spacing.4}"
20
+ },
21
+ "description": {
22
+ "fontSize": "{typography.body.small.fontSize}",
23
+ "fontWeight": "{typography.body.small.fontWeight}",
24
+ "fontFamily": "{typography.body.small.fontFamily}",
25
+ "color": "{color.text.description}"
26
+ },
27
+ "radio": {
28
+ "size": "{typography.icon.size.fontSize}",
29
+ "borderRadius": "{radius.xs}",
30
+ "strokeWidth": "1px",
31
+ "color": {
32
+ "active": "{color.radio.color.active}",
33
+ "inactive": "{color.radio.color.inactive}",
34
+ "dot": "{color.radio.color.dot}"
35
+ },
36
+ "background": "{color.radio.background}",
37
+ "focusRing": "0 0 0 1px {color.border.radioActive}"
38
+ },
39
+ "option": {
40
+ "border": {
41
+ "active": "{color.radio.option.border.active}",
42
+ "inactive": "{color.radio.option.border.inactive}"
43
+ },
44
+ "background": {
45
+ "active": "{color.radio.option.background.active}",
46
+ "inactive": "{color.radio.option.background.inactive}"
47
+ },
48
+ "text": {
49
+ "active": "{color.radio.option.text.active}",
50
+ "inactive": "{color.radio.option.text.inactive}"
51
+ }
52
+ },
53
+ "size": {
54
+ "sm": {
55
+ "radioSize": "{size.radio.sm.radioSize}",
56
+ "labelFontSize": "{size.radio.sm.labelFontSize}",
57
+ "headingFontSize": "{size.radio.sm.headingFontSize}",
58
+ "descriptionFontSize": "{size.radio.sm.descriptionFontSize}",
59
+ "dotSize": "{size.radio.sm.dotSize}"
60
+ },
61
+ "md": {
62
+ "radioSize": "{size.radio.md.radioSize}",
63
+ "labelFontSize": "{size.radio.md.labelFontSize}",
64
+ "headingFontSize": "{size.radio.md.headingFontSize}",
65
+ "descriptionFontSize": "{size.radio.md.descriptionFontSize}",
66
+ "dotSize": "{size.radio.md.dotSize}"
67
+ },
68
+ "lg": {
69
+ "radioSize": "{size.radio.lg.radioSize}",
70
+ "labelFontSize": "{size.radio.lg.labelFontSize}",
71
+ "headingFontSize": "{size.radio.lg.headingFontSize}",
72
+ "descriptionFontSize": "{size.radio.lg.descriptionFontSize}",
73
+ "dotSize": "{size.radio.lg.dotSize}"
74
+ }
75
+ },
76
+ "group": {
77
+ "gapHorizontal": "{spacing.6}",
78
+ "gapVertical": "{spacing.3}"
79
+ },
80
+ "helper": {
81
+ "fontSize": "{typography.body.small.fontSize}",
82
+ "color": "{color.text.secondary}",
83
+ "errorColor": "{color.error.default}",
84
+ "marginTop": "{spacing.1}"
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "reportcard": {
3
+ "header": {
4
+ "background": "{color.primary.default}",
5
+ "color": "{colors.white}"
6
+ },
7
+ "body": {
8
+ "background": "{colors.white}",
9
+ "dividerColor": "{colors.gray.200}",
10
+ "bulletColor": "{colors.gray.300}",
11
+ "itemColor": "{colors.gray.600}",
12
+ "itemHoverColor": "{color.primary.default}"
13
+ },
14
+ "borderRadius": "8px",
15
+ "shadow": "0 1px 4px rgba(0,0,0,0.08)"
16
+ }
17
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "selector": {
3
+ "input": {
4
+ "size": {
5
+ "xs": {
6
+ "height": "{semantic.size.xs.height}",
7
+ "padding": "{semantic.size.xs.paddingY} {semantic.size.xs.paddingX}",
8
+ "fontSize": "{semantic.size.xs.fontSize}",
9
+ "borderRadius": "{radius.md}"
10
+ },
11
+ "sm": {
12
+ "height": "{semantic.size.sm.height}",
13
+ "padding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
14
+ "fontSize": "{semantic.size.sm.fontSize}",
15
+ "borderRadius": "{radius.md}"
16
+ },
17
+ "md": {
18
+ "height": "{semantic.size.md.height}",
19
+ "padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
20
+ "fontSize": "{semantic.size.md.fontSize}",
21
+ "borderRadius": "{radius.md}"
22
+ },
23
+ "lg": {
24
+ "height": "{semantic.size.lg.height}",
25
+ "padding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
26
+ "fontSize": "{semantic.size.lg.fontSize}",
27
+ "borderRadius": "{radius.md}"
28
+ }
29
+ },
30
+ "border": {
31
+ "default": "2px solid {color.border.transparent}",
32
+ "active": "2px solid {color.border.active}",
33
+ "error": "2px solid {color.error.default}"
34
+ },
35
+ "color": "{color.text.primary}",
36
+ "background": "{color.background.default}",
37
+ "backgroundWhite": "{color.white}",
38
+ "backgroundDisabled": "{colors.white}",
39
+ "disabledOpacity": "{semantic.opacity.disabled}"
40
+ },
41
+ "listbox": {
42
+ "background": "{color.background.dropdown}",
43
+ "groupHeadingBackground": "{color.background.groupHeading}",
44
+ "groupHeadingBorder": "1px solid {color.border.default}",
45
+ "border": "1px solid {color.border.default}",
46
+ "borderRadius": "{radius.md}"
47
+ },
48
+ "option": {
49
+ "padding": "{spacing.component.md} {spacing.component.lg}",
50
+ "fontSize": "{typography.body.medium.fontSize}",
51
+ "color": "{color.text.primary}",
52
+ "hoverBackground": "{color.background.tertiary}"
53
+ },
54
+ "wrapper": {
55
+ "background": "{color.background.default}",
56
+ "backgroundWhite": "{colors.white}",
57
+ "backgroundDisabled": "{colors.white}",
58
+ "borderRadius": "{radius.xl}"
59
+ },
60
+ "chip": {
61
+ "background": "{color.background.chip}",
62
+ "color": "{color.text.badge}",
63
+ "fontSize": "{typography.body.medium.fontSize}",
64
+ "borderRadius": "{radius.xl}"
65
+ },
66
+ "checkbox": {
67
+ "accentColor": "{color.primary.default}"
68
+ },
69
+ "label": {
70
+ "fontSize": "{typography.label.medium.fontSize}",
71
+ "fontWeight": "{typography.label.medium.fontWeight}",
72
+ "marginBottom": "{spacing.2}",
73
+ "color": "{color.text.primary}",
74
+ "requiredColor": "{color.error.default}"
75
+ },
76
+ "helper": {
77
+ "fontSize": "{typography.body.small.fontSize}",
78
+ "color": "{color.text.secondary}",
79
+ "errorColor": "{color.error.default}"
80
+ },
81
+ "button": {
82
+ "hoverBackground": "{color.background.tertiary}",
83
+ "hoverColor": "{color.text.secondary}",
84
+ "color": "{color.text.primary}"
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "selectscroll": {
3
+ "input": {
4
+ "size": {
5
+ "sm": {
6
+ "height": "{semantic.size.sm.height}",
7
+ "padding": "{semantic.size.sm.paddingY} {semantic.size.sm.paddingX}",
8
+ "fontSize": "{semantic.size.sm.fontSize}",
9
+ "borderRadius": "{radius.md}"
10
+ },
11
+ "md": {
12
+ "height": "{semantic.size.md.height}",
13
+ "padding": "{semantic.size.md.paddingY} {semantic.size.md.paddingX}",
14
+ "fontSize": "{semantic.size.md.fontSize}",
15
+ "borderRadius": "{radius.md}"
16
+ },
17
+ "lg": {
18
+ "height": "{semantic.size.lg.height}",
19
+ "padding": "{semantic.size.lg.paddingY} {semantic.size.lg.paddingX}",
20
+ "fontSize": "{semantic.size.lg.fontSize}",
21
+ "borderRadius": "{radius.md}"
22
+ }
23
+ },
24
+ "border": {
25
+ "default": "2px solid {color.border.transparent}",
26
+ "active": "2px solid {color.border.active}",
27
+ "error": "2px solid {color.error.default}"
28
+ },
29
+ "color": "{color.text.primary}",
30
+ "background": "{color.background.default}",
31
+ "backgroundWhite": "{colors.white}",
32
+ "backgroundDisabled": "{color.background.disabled}",
33
+ "disabledOpacity": "{semantic.opacity.disabled}"
34
+ },
35
+ "listbox": {
36
+ "background": "{color.background.default}",
37
+ "border": "1px solid {color.border.default}",
38
+ "borderRadius": "{radius.md}"
39
+ },
40
+ "option": {
41
+ "padding": "{spacing.component.md} {spacing.component.lg}",
42
+ "fontSize": "{typography.body.medium.fontSize}",
43
+ "color": "{color.text.primary}",
44
+ "hoverBackground": "{color.background.tertiary}"
45
+ },
46
+ "label": {
47
+ "fontSize": "{typography.label.medium.fontSize}",
48
+ "fontWeight": "{typography.label.medium.fontWeight}",
49
+ "marginBottom": "{spacing.2}",
50
+ "color": "{color.text.primary}",
51
+ "requiredColor": "{color.error.default}"
52
+ },
53
+ "helper": {
54
+ "fontSize": "{typography.body.small.fontSize}",
55
+ "color": "{color.text.secondary}",
56
+ "errorColor": "{color.error.default}"
57
+ },
58
+ "placeholderColor": "{color.text.tertiary}",
59
+ "button": {
60
+ "hoverBackground": "{color.background.tertiary}",
61
+ "hoverColor": "{color.text.secondary}",
62
+ "color": "{color.text.primary}"
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "skeleton": {
3
+ "baseColor": "{color.background.disabled}",
4
+ "highlightColor": "{color.background.default}"
5
+ }
6
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "stepper": {
3
+ "gap": "{spacing.2}",
4
+ "stepGap": "{spacing.2}",
5
+ "line": {
6
+ "width": "{size.40}",
7
+ "height": "{size.2}",
8
+ "completedBackground": "{color.success.default}",
9
+ "pendingBackground": "{color.border.default}"
10
+ },
11
+ "indicator": {
12
+ "size": "{size.34}",
13
+ "borderWidth": "{size.2}",
14
+ "fontFamily": "{typography.fontFamily.sans}",
15
+ "fontSize": "{typography.fontSize.base}",
16
+ "fontWeight": "{typography.fontWeight.semibold}",
17
+ "lineHeight": "{typography.lineHeight.normal}",
18
+ "completedBackground": "{color.success.default}",
19
+ "completedBorder": "{color.success.default}",
20
+ "completedColor": "{color.text.inverse}",
21
+ "activeBackground": "{color.success.light}",
22
+ "activeBorder": "{color.success.default}",
23
+ "activeColor": "{color.success.dark}",
24
+ "pendingBackground": "{color.background.default}",
25
+ "pendingBorder": "{color.border.default}",
26
+ "pendingColor": "{color.text.disabled}"
27
+ },
28
+ "label": {
29
+ "fontFamily": "{typography.fontFamily.sans}",
30
+ "fontSize": "{typography.fontSize.2xl}",
31
+ "fontWeight": "{typography.fontWeight.semibold}",
32
+ "lineHeight": "{typography.lineHeight.normal}",
33
+ "completedColor": "{color.success.dark}",
34
+ "activeColor": "{color.success.dark}",
35
+ "pendingColor": "{color.text.disabled}"
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "subTabs": {
3
+ "gap": "{spacing.component.xxs}",
4
+ "trackPadding": "6px",
5
+ "trackBorderRadius": "{radius.lg}",
6
+ "trackBackground": "{color.background.default}",
7
+ "trackBorder": "{color.border.default}",
8
+ "fontWeight": "{typography.body.medium.fontWeight}",
9
+ "activeFontWeight": "{typography.heading.h4.fontWeight}",
10
+ "size": {
11
+ "sm": {
12
+ "height": "{semantic.size.sm.height}",
13
+ "padding": "{semantic.size.sm.paddingY} {semantic.size.md.paddingX}",
14
+ "fontSize": "{semantic.size.sm.fontSize}",
15
+ "borderRadius": "{radius.md}",
16
+ "iconSize": "22px"
17
+ },
18
+ "md": {
19
+ "height": "{semantic.size.md.height}",
20
+ "padding": "{semantic.size.md.paddingY} {semantic.size.lg.paddingX}",
21
+ "fontSize": "{semantic.size.md.fontSize}",
22
+ "borderRadius": "{radius.md}",
23
+ "iconSize": "26px"
24
+ }
25
+ },
26
+ "colors": {
27
+ "primary": {
28
+ "accent": "{color.primary.default}",
29
+ "accentLight": "{color.background.default}",
30
+ "activeText": "{color.primary.default}",
31
+ "inactiveText": "{color.text.secondary}",
32
+ "activeIconBackground": "{color.primary.default}",
33
+ "inactiveIconBackground": "{color.background.default}"
34
+ },
35
+ "green": {
36
+ "accent": "#52760A",
37
+ "accentLight": "#F3F6EC",
38
+ "activeText": "#52760A",
39
+ "inactiveText": "#6B7280",
40
+ "activeIconBackground": "#52760A",
41
+ "inactiveIconBackground": "#EEF1E4"
42
+ }
43
+ }
44
+ }
45
+ }