@driveflux/beam 2.0.9 → 2.0.10

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 (253) hide show
  1. package/dist/accordion/Accordion.js +7 -133
  2. package/dist/accordion/Accordion.stories.js +11 -31
  3. package/dist/alert/Alert.js +14 -110
  4. package/dist/alert/Alert.stories.js +15 -50
  5. package/dist/animations/LoadingAnimation.js +21 -34
  6. package/dist/badge/Badge.js +7 -96
  7. package/dist/badge/Badge.stories.js +7 -28
  8. package/dist/base-styles.css +264 -96
  9. package/dist/box/Box.d.ts.map +1 -1
  10. package/dist/box/Box.js +3 -87
  11. package/dist/box/Box.stories.js +7 -8
  12. package/dist/breadcrumbs/Breadcrumbs.js +28 -288
  13. package/dist/breadcrumbs/Breadcrumbs.stories.js +27 -51
  14. package/dist/button/Button.js +12 -124
  15. package/dist/button/Button.stories.js +7 -35
  16. package/dist/card/Card.js +7 -109
  17. package/dist/card/Card.stories.js +7 -10
  18. package/dist/carousel/Carousel.js +58 -281
  19. package/dist/carousel/Carousel.js.map +1 -1
  20. package/dist/carousel/Carousel.stories.js +7 -39
  21. package/dist/carousel/CarouselButton.js +7 -68
  22. package/dist/center/Center.js +3 -63
  23. package/dist/center/Center.stories.js +7 -19
  24. package/dist/checkbox/Checkbox.js +4 -124
  25. package/dist/checkbox/Checkbox.stories.js +8 -10
  26. package/dist/chip/Chip.js +3 -104
  27. package/dist/chip/Chip.stories.js +7 -19
  28. package/dist/circular-progress/CircularProgress.js +11 -150
  29. package/dist/circular-progress/CircularProgress.stories.js +14 -54
  30. package/dist/command/command.js +13 -170
  31. package/dist/command/command.js.map +1 -1
  32. package/dist/datepicker/DatePicker.d.ts +2 -2
  33. package/dist/datepicker/DatePicker.d.ts.map +1 -1
  34. package/dist/datepicker/DatePicker.js +27 -127
  35. package/dist/datepicker/DatePicker.js.map +1 -1
  36. package/dist/datepicker/DatePicker.stories.js +58 -163
  37. package/dist/datepicker/DatePickerDrawer.js +14 -110
  38. package/dist/datepicker/DatePickerPopover.js +35 -207
  39. package/dist/datepicker/DatePickerPopover.js.map +1 -1
  40. package/dist/datepicker/constants.js +4 -3
  41. package/dist/datepicker/root-calendar.css +58 -58
  42. package/dist/datepicker/utils.js +11 -4
  43. package/dist/dialog/index.js +12 -144
  44. package/dist/divider/Divider.js +3 -63
  45. package/dist/divider/Divider.js.map +1 -1
  46. package/dist/divider/Divider.stories.js +7 -13
  47. package/dist/drawer/index.js +12 -157
  48. package/dist/drawer/index.js.map +1 -1
  49. package/dist/dropdown/Dropdown.js +26 -212
  50. package/dist/dropdown/Dropdown.js.map +1 -1
  51. package/dist/dropdown/Dropdown.stories.js +22 -109
  52. package/dist/field-wrapper/FieldWrapper.js +3 -139
  53. package/dist/field-wrapper/FieldWrapper.js.map +1 -1
  54. package/dist/field-wrapper/FieldWrapper.stories.js +28 -124
  55. package/dist/flex/Flex.js +3 -63
  56. package/dist/flex/Flex.stories.js +7 -19
  57. package/dist/grid/Grid.js +3 -63
  58. package/dist/grid/Grid.stories.js +7 -28
  59. package/dist/hooks/use-breakpoint-value.js +14 -77
  60. package/dist/hooks/use-media-query.js +12 -61
  61. package/dist/hstack/HStack.js +3 -63
  62. package/dist/hstack/HStack.stories.js +7 -19
  63. package/dist/icons/FluxLogo.js +9 -213
  64. package/dist/icons/FluxLogoTable.js +5 -109
  65. package/dist/icons/Icon.js +7 -108
  66. package/dist/icons/Icon.stories.js +7 -12
  67. package/dist/icons/Icon24Hours.js +5 -83
  68. package/dist/icons/IconAcceleration.js +4 -72
  69. package/dist/icons/IconAccount.js +4 -72
  70. package/dist/icons/IconApplicant.js +5 -78
  71. package/dist/icons/IconArrow.js +6 -78
  72. package/dist/icons/IconArrowBack.js +4 -72
  73. package/dist/icons/IconArrowForward.js +4 -72
  74. package/dist/icons/IconArrowTopLeft.js +4 -70
  75. package/dist/icons/IconBluesharkProductGuide.js +5 -80
  76. package/dist/icons/IconBolt.js +4 -72
  77. package/dist/icons/IconBriefcase.js +4 -72
  78. package/dist/icons/IconBulb.js +4 -72
  79. package/dist/icons/IconCalendar.js +4 -72
  80. package/dist/icons/IconCalendarArrowBack.js +4 -72
  81. package/dist/icons/IconCalendarArrowForward.js +4 -72
  82. package/dist/icons/IconCalendarDoubleArrowBack.js +4 -72
  83. package/dist/icons/IconCalendarDoubleArrowForward.js +4 -72
  84. package/dist/icons/IconCancel.js +6 -85
  85. package/dist/icons/IconCancelMark.js +4 -72
  86. package/dist/icons/IconCarSUV.js +4 -72
  87. package/dist/icons/IconCarSedan.js +7 -147
  88. package/dist/icons/IconChain.js +5 -79
  89. package/dist/icons/IconCheckmark.js +4 -72
  90. package/dist/icons/IconChevronRight.js +4 -72
  91. package/dist/icons/IconCircle.js +11 -114
  92. package/dist/icons/IconCircleCheckmark.js +5 -77
  93. package/dist/icons/IconCircleError.js +4 -72
  94. package/dist/icons/IconCircleExclamation.js +6 -104
  95. package/dist/icons/IconCircleMark.js +5 -78
  96. package/dist/icons/IconCircleOutline.js +5 -140
  97. package/dist/icons/IconClock.js +5 -80
  98. package/dist/icons/IconClose.js +4 -72
  99. package/dist/icons/IconConcierge.js +5 -79
  100. package/dist/icons/IconConciergeService.js +5 -87
  101. package/dist/icons/IconCreditCard.js +5 -78
  102. package/dist/icons/IconDash.js +4 -72
  103. package/dist/icons/IconDeliver.js +4 -72
  104. package/dist/icons/IconDelivery.js +5 -87
  105. package/dist/icons/IconDetails.js +4 -72
  106. package/dist/icons/IconDot.js +6 -87
  107. package/dist/icons/IconDot.js.map +1 -1
  108. package/dist/icons/IconEVCharging.js +5 -79
  109. package/dist/icons/IconElectricCarFuel.js +5 -80
  110. package/dist/icons/IconEllipsis.js +5 -78
  111. package/dist/icons/IconEnvelope.js +4 -72
  112. package/dist/icons/IconEye.js +5 -79
  113. package/dist/icons/IconFacebook.js +6 -94
  114. package/dist/icons/IconFilter.js +5 -83
  115. package/dist/icons/IconFlagMalaysia.js +5 -141
  116. package/dist/icons/IconGiveKey.js +5 -79
  117. package/dist/icons/IconGlobe.js +4 -70
  118. package/dist/icons/IconGoogle.js +5 -87
  119. package/dist/icons/IconHome.js +5 -78
  120. package/dist/icons/IconHostAdvertise.js +4 -72
  121. package/dist/icons/IconHostCar.js +4 -75
  122. package/dist/icons/IconHostCash.js +5 -91
  123. package/dist/icons/IconHostHandle.js +4 -70
  124. package/dist/icons/IconHostLocation.js +4 -70
  125. package/dist/icons/IconHostPayment.js +5 -91
  126. package/dist/icons/IconHostService.js +5 -79
  127. package/dist/icons/IconHotDeals.js +4 -72
  128. package/dist/icons/IconInfo.js +5 -77
  129. package/dist/icons/IconInstagram.js +4 -72
  130. package/dist/icons/IconInsurance.js +5 -99
  131. package/dist/icons/IconInternet.js +4 -73
  132. package/dist/icons/IconInventory.js +5 -78
  133. package/dist/icons/IconLaurel.js +5 -101
  134. package/dist/icons/IconLinkedIn.js +4 -72
  135. package/dist/icons/IconLoading.js +4 -78
  136. package/dist/icons/IconLocation.js +5 -80
  137. package/dist/icons/IconLock.js +4 -73
  138. package/dist/icons/IconLogistics.js +4 -72
  139. package/dist/icons/IconMail.js +5 -94
  140. package/dist/icons/IconMember.js +5 -78
  141. package/dist/icons/IconMobilePen.js +5 -83
  142. package/dist/icons/IconMotorcycleMoped.js +5 -78
  143. package/dist/icons/IconNoCost.js +5 -92
  144. package/dist/icons/IconPDF.js +5 -80
  145. package/dist/icons/IconPencil.js +4 -70
  146. package/dist/icons/IconPhone.js +4 -70
  147. package/dist/icons/IconPlus.js +4 -72
  148. package/dist/icons/IconPricing.js +4 -72
  149. package/dist/icons/IconProtected.js +4 -71
  150. package/dist/icons/IconPsychology.js +4 -72
  151. package/dist/icons/IconQuestionTooltip.js +4 -73
  152. package/dist/icons/IconQuote.js +4 -72
  153. package/dist/icons/IconRate.js +4 -71
  154. package/dist/icons/IconRegister.js +5 -99
  155. package/dist/icons/IconReturn.js +4 -72
  156. package/dist/icons/IconSearch.js +4 -70
  157. package/dist/icons/IconSecure.js +4 -71
  158. package/dist/icons/IconSecurity.js +4 -73
  159. package/dist/icons/IconSedanOutline.js +5 -159
  160. package/dist/icons/IconSelectArrow.js +6 -78
  161. package/dist/icons/IconSort.js +5 -79
  162. package/dist/icons/IconSortListed.js +5 -95
  163. package/dist/icons/IconSortPriceAscending.js +5 -83
  164. package/dist/icons/IconSortPriceDescending.js +5 -83
  165. package/dist/icons/IconSortYear.js +5 -79
  166. package/dist/icons/IconSpan.js +4 -71
  167. package/dist/icons/IconSpeaker.js +4 -79
  168. package/dist/icons/IconSpecialCar.js +5 -95
  169. package/dist/icons/IconStar.js +7 -92
  170. package/dist/icons/IconStockPhoto.js +5 -95
  171. package/dist/icons/IconSubscription.js +6 -113
  172. package/dist/icons/IconSubscriptions.js +6 -113
  173. package/dist/icons/IconSwap.js +5 -79
  174. package/dist/icons/IconTax.js +4 -72
  175. package/dist/icons/IconThinArrow.js +6 -78
  176. package/dist/icons/IconThumbsdown.js +5 -78
  177. package/dist/icons/IconThumbsup.js +5 -78
  178. package/dist/icons/IconTool.js +4 -72
  179. package/dist/icons/IconTooltip.js +4 -73
  180. package/dist/icons/IconTrash.js +4 -72
  181. package/dist/icons/IconTriangleExclamation.js +4 -72
  182. package/dist/icons/IconTyersBrakes.js +5 -83
  183. package/dist/icons/IconTyre.js +5 -83
  184. package/dist/icons/IconVacancy.js +5 -78
  185. package/dist/icons/IconVolunteer.js +4 -72
  186. package/dist/icons/IconWhatsapp.js +4 -73
  187. package/dist/icons/IconXPlatform.js +4 -72
  188. package/dist/icons/IconZeroEffort.js +5 -77
  189. package/dist/icons/Logo.js +3 -99
  190. package/dist/input/Input.js +11 -125
  191. package/dist/input/Input.stories.js +18 -17
  192. package/dist/input-mask/InputMask.js +11 -149
  193. package/dist/input-mask/InputMask.stories.js +6 -5
  194. package/dist/input-mask/mask-trackers.js +5 -4
  195. package/dist/input-select/InputSelect.js +68 -357
  196. package/dist/input-select/InputSelect.js.map +1 -1
  197. package/dist/input-select/InputSelect.stories.d.ts.map +1 -1
  198. package/dist/input-select/InputSelect.stories.js +25 -98
  199. package/dist/popover/popover.js +4 -72
  200. package/dist/popover/popover.js.map +1 -1
  201. package/dist/progress/Progress.js +2 -96
  202. package/dist/progress/Progress.stories.js +14 -13
  203. package/dist/radio/Radio.js +4 -163
  204. package/dist/scroll-area/scroll-area.js +5 -113
  205. package/dist/scroll-area/scroll-area.js.map +1 -1
  206. package/dist/search-input-select/SearchInputSelect.js +69 -346
  207. package/dist/search-input-select/SearchInputSelect.js.map +1 -1
  208. package/dist/select/Select.js +29 -315
  209. package/dist/select/Select.js.map +1 -1
  210. package/dist/select/Select.stories.d.ts.map +1 -1
  211. package/dist/select/Select.stories.js +19 -55
  212. package/dist/skeleton/Skeleton.js +3 -62
  213. package/dist/skeleton/Skeleton.stories.js +7 -8
  214. package/dist/slider/Slider.js +5 -106
  215. package/dist/slider/Slider.stories.js +11 -12
  216. package/dist/stack/Stack.js +3 -63
  217. package/dist/stack/Stack.stories.js +7 -19
  218. package/dist/styles.css +2787 -3282
  219. package/dist/table/Table.js +10 -131
  220. package/dist/table/Table.stories.js +8 -84
  221. package/dist/tabs/Tabs.js +9 -128
  222. package/dist/tabs/Tabs.js.map +1 -1
  223. package/dist/tabs/Tabs.stories.js +13 -46
  224. package/dist/text/Text.d.ts.map +1 -1
  225. package/dist/text/Text.js +6 -88
  226. package/dist/text/Text.stories.js +7 -44
  227. package/dist/toast/Toast.stories.js +14 -66
  228. package/dist/toast/ToastBox.js +24 -71
  229. package/dist/toast/index.js +1 -0
  230. package/dist/toast/sonner.js +11 -70
  231. package/dist/toggle/Toggle.js +7 -116
  232. package/dist/toggle/Toggle.stories.js +8 -10
  233. package/dist/tooltip/Tooltip.js +12 -151
  234. package/dist/tooltip/Tooltip.stories.js +13 -71
  235. package/dist/utils.js +2 -4
  236. package/dist/vstack/VStack.js +3 -63
  237. package/dist/vstack/VStack.stories.js +7 -19
  238. package/package.json +4 -4
  239. package/dist/icons/IconCollapseAll.d.ts +0 -8
  240. package/dist/icons/IconCollapseAll.d.ts.map +0 -1
  241. package/dist/icons/IconCollapseAll.js +0 -97
  242. package/dist/icons/IconCollapseAll.js.map +0 -1
  243. package/dist/icons/IconDownload.d.ts +0 -8
  244. package/dist/icons/IconDownload.d.ts.map +0 -1
  245. package/dist/icons/IconDownload.js +0 -82
  246. package/dist/icons/IconExpandAll.d.ts +0 -8
  247. package/dist/icons/IconExpandAll.d.ts.map +0 -1
  248. package/dist/icons/IconExpandAll.js +0 -97
  249. package/dist/icons/IconExpandAll.js.map +0 -1
  250. package/dist/icons/IconReport.d.ts +0 -9
  251. package/dist/icons/IconReport.d.ts.map +0 -1
  252. package/dist/icons/IconReport.js +0 -92
  253. package/dist/icons/IconReport.js.map +0 -1
@@ -1,8 +1,9 @@
1
1
  @import "./root.css";
2
2
  @import "./datepicker/calendar.css";
3
- @tailwind base;
4
- @tailwind components;
5
- @tailwind utilities;
3
+
4
+ @plugin 'tailwindcss-animate';
5
+
6
+ @custom-variant dark (&:is(.dark *));
6
7
 
7
8
  @font-face {
8
9
  font-family: "Gotham-Black";
@@ -59,115 +60,282 @@
59
60
  font-display: swap;
60
61
  }
61
62
 
62
- html {
63
- line-height: 1.15;
64
- -webkit-text-size-adjust: 100%;
65
- height: 100%;
66
- box-sizing: border-box;
67
- line-height: 1.65;
68
- }
63
+ @theme {
64
+ --height-button: 48px;
69
65
 
70
- *,
71
- *:before,
72
- *:after {
73
- box-sizing: inherit;
74
- }
66
+ --font-bold: Gotham-Bold;
67
+ --font-normal: Gotham-Book;
68
+ --font-medium: Gotham-Medium;
69
+ --font-black: Gotham-Black;
70
+ --font-light: Gotham-Light;
75
71
 
76
- body {
77
- position: relative;
78
- min-height: 100%;
79
- margin: 0;
80
-
81
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu",
82
- "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
83
- font-weight: 400;
84
- min-width: 320px;
85
- direction: ltr;
86
- font-feature-settings: "kern";
87
- text-rendering: optimizeLegibility;
88
- -webkit-font-smoothing: antialiased;
89
- -moz-osx-font-smoothing: grayscale;
90
- scroll-behavior: smooth;
91
- font-family: var(--primaryNormal);
92
- }
72
+ --text-xs: 10px;
73
+ --text-sm: 12px;
74
+ --text-base: 14px;
75
+ --text-xl: 16px;
76
+ --text-2xl: 18px;
77
+ --text-3xl: 20px;
78
+ --text-4xl: 22px;
79
+ --text-5xl: 24px;
80
+ --text-6xl: 26px;
81
+ --text-7xl: 28px;
82
+ --text-8xl: 30px;
93
83
 
94
- html,
95
- body {
96
- background-color: var(--white);
97
- }
84
+ --tracking-normal: 0;
85
+ --tracking-wide: 1px;
86
+ --tracking-wider: 2px;
87
+ --tracking-widest: 3px;
98
88
 
99
- ::selection {
100
- background-color: var(--primary);
101
- color: var(--white);
102
- }
89
+ --color-primary1: #efeff0;
90
+ --color-primary2: #cacaca;
91
+ --color-primary3: #585858;
92
+ --color-primary4: #191919;
93
+ --color-accent4: #e55867;
94
+ --color-links1: #eefafd;
95
+ --color-links2: #ade0ee;
96
+ --color-links: #50c8e8;
97
+ --color-lite: #d6f0f7;
98
+ --color-alert4: #e24657;
99
+ --color-danger: #e24657;
100
+ --color-warning4: #f4b25c;
101
+ --color-success4: #4fd9c2;
102
+ --color-green: #4fd9c2;
103
+ --color-black: #000000;
104
+ --color-white: #ffffff;
105
+ --color-white-hover: #e6e6e6;
106
+ --color-placeholder: #f4f4f4;
107
+ --color-highlight: #f9f7d7;
103
108
 
104
- [role="grid"]:focus {
105
- outline: none;
106
- }
109
+ --color-primary-25: #fafafa;
110
+ --color-primary-50: #d6f5f0;
111
+ --color-primary-100: #98e6d6;
112
+ --color-primary-200: #191919;
113
+ --color-primary-300: #191919;
114
+ --color-primary-400: #3bd5bb;
115
+ --color-primary-500: #000000;
116
+ --color-primary-600: #000000;
117
+ --color-primary-700: #000000;
118
+ --color-primary-800: #000000;
119
+ --color-primary-900: #000000;
107
120
 
108
- svg {
109
- text-rendering: optimizeLegibility;
110
- }
121
+ --color-success-50: #d8f7f2;
122
+ --color-success-100: #98e6d6;
123
+ --color-success-200: #3bd5bc;
124
+ --color-success-300: #4fd9c2;
125
+ --color-success-400: #3bd5bb;
126
+ --color-success-500: #3bd5bb;
127
+ --color-success-600: #2ea692;
128
+ --color-success-700: #00825c;
129
+ --color-success-800: #00724d;
130
+ --color-success-900: #005530;
111
131
 
112
- h1,
113
- h2,
114
- h3 {
115
- margin: 0;
116
- }
132
+ --color-accent-50: #fceaee;
133
+ --color-accent-100: #f8cad3;
134
+ --color-accent-200: #e55867;
135
+ --color-accent-300: #e55867;
136
+ --color-accent-400: #e24657;
137
+ --color-accent-500: #e24657;
138
+ --color-accent-600: #d8253f;
139
+ --color-accent-700: #c61a38;
140
+ --color-accent-800: #b91231;
141
+ --color-accent-900: #aa0026;
117
142
 
118
- a {
119
- color: var(--links);
120
- text-decoration: none;
121
- transition: color 0.2s ease;
122
- }
143
+ --color-warning-50: #fdf0de;
144
+ --color-warning-100: #f4b25c;
145
+ --color-warning-200: #f4b25c;
146
+ --color-warning-300: #f4b25c;
147
+ --color-warning-400: #f4b25c;
148
+ --color-warning-500: #f4b25c;
149
+ --color-warning-600: #bf7f2c;
150
+ --color-warning-700: #f4b25c;
151
+ --color-warning-800: #f4b25c;
152
+ --color-warning-900: #f4b25c;
123
153
 
124
- a:hover {
125
- text-decoration: none;
126
- }
154
+ --color-info-25: #eefafc;
155
+ --color-info-50: #cdf1fa;
156
+ --color-info-100: #50c8e8;
157
+ --color-info-200: #50c8e8;
158
+ --color-info-300: #50c8e8;
159
+ --color-info-400: #50c8e8;
160
+ --color-info-500: #50c8e8;
161
+ --color-info-600: #3ea5c0;
162
+ --color-info-700: #50c8e8;
163
+ --color-info-800: #50c8e8;
164
+ --color-info-900: #183c46;
127
165
 
128
- * {
129
- overflow: visible;
130
- box-sizing: border-box;
131
- text-align: left;
132
- }
166
+ --color-alert-50: #e24657;
167
+ --color-alert-100: #e24657;
168
+ --color-alert-200: #e24657;
169
+ --color-alert-300: #e24657;
170
+ --color-alert-400: #e24657;
171
+ --color-alert-500: #e24657;
172
+ --color-alert-600: #e24657;
173
+ --color-alert-700: #e24657;
174
+ --color-alert-800: #e24657;
175
+ --color-alert-900: #e24657;
133
176
 
134
- strong {
135
- font-family: var(--primaryBold);
136
- }
177
+ --animate-accordion-down: accordion-down 0.2s ease-out;
178
+ --animate-accordion-up: accordion-up 0.2s ease-out;
179
+ --animate-spin: rotate 0.6s linear infinite;
137
180
 
138
- .svg-icon {
139
- width: 100%;
140
- height: 100%;
141
- }
181
+ --leading-14: 14px;
142
182
 
143
- input:-webkit-autofill,
144
- input:-webkit-autofill:hover,
145
- input:-webkit-autofill:focus,
146
- textarea:-webkit-autofill,
147
- textarea:-webkit-autofill:hover,
148
- textarea:-webkit-autofill:focus,
149
- select:-webkit-autofill,
150
- select:-webkit-autofill:hover,
151
- select:-webkit-autofill:focus {
152
- background-color: var(--white) !important;
153
- -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
154
- color: #000 !important;
155
- font-size: 14px !important;
156
- }
183
+ @keyframes accordion-down {
184
+ from {
185
+ height: 0;
186
+ }
157
187
 
158
- li::marker {
159
- font-size: 15px;
160
- margin-left: 10px;
161
- }
188
+ to {
189
+ height: var(--radix-accordion-content-height);
190
+ }
191
+ }
162
192
 
163
- .full-width {
164
- width: 100%;
165
- }
193
+ @keyframes accordion-up {
194
+ from {
195
+ height: var(--radix-accordion-content-height);
196
+ }
197
+
198
+ to {
199
+ height: 0;
200
+ }
201
+ }
202
+
203
+ @keyframes rotate {
204
+ 0% {
205
+ transform: rotate(0deg);
206
+ }
166
207
 
167
- .h-safe-bottom-edge {
168
- height: env(safe-area-inset-bottom);
208
+ 100% {
209
+ transform: rotate(360deg);
210
+ }
211
+ }
169
212
  }
170
213
 
171
- ::-ms-reveal {
172
- display: none;
214
+ @layer base {
215
+ *,
216
+ ::after,
217
+ ::before,
218
+ ::backdrop,
219
+ ::file-selector-button {
220
+ border-color: var(--color-gray-200, currentcolor);
221
+ }
222
+
223
+ a {
224
+ color: var(--links);
225
+ text-decoration: none;
226
+ transition: color 0.2s ease;
227
+ }
228
+
229
+ a:hover {
230
+ text-decoration: none;
231
+ }
232
+
233
+ html {
234
+ line-height: 1.15;
235
+ -webkit-text-size-adjust: 100%;
236
+ height: 100%;
237
+ box-sizing: border-box;
238
+ line-height: 1.65;
239
+ }
240
+
241
+ *,
242
+ *:before,
243
+ *:after {
244
+ box-sizing: inherit;
245
+ }
246
+
247
+ body {
248
+ position: relative;
249
+ min-height: 100%;
250
+ margin: 0;
251
+
252
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen",
253
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
254
+ sans-serif;
255
+ font-weight: 400;
256
+ min-width: 320px;
257
+ direction: ltr;
258
+ font-feature-settings: "kern";
259
+ text-rendering: optimizeLegibility;
260
+ -webkit-font-smoothing: antialiased;
261
+ -moz-osx-font-smoothing: grayscale;
262
+ scroll-behavior: smooth;
263
+ font-family: var(--primaryNormal);
264
+ }
265
+
266
+ html,
267
+ body {
268
+ background-color: var(--white);
269
+ }
270
+
271
+ ::selection {
272
+ background-color: var(--primary);
273
+ color: var(--white);
274
+ }
275
+
276
+ [role="grid"]:focus {
277
+ outline: none;
278
+ }
279
+
280
+ svg {
281
+ text-rendering: optimizeLegibility;
282
+ }
283
+
284
+ h1,
285
+ h2,
286
+ h3 {
287
+ margin: 0;
288
+ }
289
+
290
+ * {
291
+ overflow: visible;
292
+ box-sizing: border-box;
293
+ text-align: left;
294
+ }
295
+
296
+ button:not(:disabled),
297
+ [role="button"]:not(:disabled) {
298
+ cursor: pointer;
299
+ }
300
+
301
+ strong {
302
+ font-family: var(--primaryBold);
303
+ }
304
+
305
+ .svg-icon {
306
+ width: 100%;
307
+ height: 100%;
308
+ }
309
+
310
+ input:-webkit-autofill,
311
+ input:-webkit-autofill:hover,
312
+ input:-webkit-autofill:focus,
313
+ textarea:-webkit-autofill,
314
+ textarea:-webkit-autofill:hover,
315
+ textarea:-webkit-autofill:focus,
316
+ select:-webkit-autofill,
317
+ select:-webkit-autofill:hover,
318
+ select:-webkit-autofill:focus {
319
+ background-color: var(--white) !important;
320
+ -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
321
+ color: #000 !important;
322
+ font-size: 14px !important;
323
+ }
324
+
325
+ li::marker {
326
+ font-size: 15px;
327
+ margin-left: 10px;
328
+ }
329
+
330
+ .full-width {
331
+ width: 100%;
332
+ }
333
+
334
+ .h-safe-bottom-edge {
335
+ height: env(safe-area-inset-bottom);
336
+ }
337
+
338
+ ::-ms-reveal {
339
+ display: none;
340
+ }
173
341
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,KAAK,CAAC,SAAS,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAA;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;CAC5D;AAED,QAAA,MAAM,GAAG,iFAIR,CAAA;AAGD,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC,cAAc,CAAA;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;CAC5D;AAED,QAAA,MAAM,GAAG,iFAIR,CAAA;AAGD,eAAe,GAAG,CAAA"}
package/dist/box/Box.js CHANGED
@@ -1,91 +1,7 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- function _object_without_properties(source, excluded) {
54
- if (source == null) return {};
55
- var target = _object_without_properties_loose(source, excluded);
56
- var key, i;
57
- if (Object.getOwnPropertySymbols) {
58
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
- for(i = 0; i < sourceSymbolKeys.length; i++){
60
- key = sourceSymbolKeys[i];
61
- if (excluded.indexOf(key) >= 0) continue;
62
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
- target[key] = source[key];
64
- }
65
- }
66
- return target;
67
- }
68
- function _object_without_properties_loose(source, excluded) {
69
- if (source == null) return {};
70
- var target = {};
71
- var sourceKeys = Object.keys(source);
72
- var key, i;
73
- for(i = 0; i < sourceKeys.length; i++){
74
- key = sourceKeys[i];
75
- if (excluded.indexOf(key) >= 0) continue;
76
- target[key] = source[key];
77
- }
78
- return target;
79
- }
80
1
  import * as React from 'react';
81
- var Box = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
82
- var _param_as = _param.as, as = _param_as === void 0 ? 'div' : _param_as, children = _param.children, props = _object_without_properties(_param, [
83
- "as",
84
- "children"
85
- ]);
86
- return /*#__PURE__*/ React.createElement(as, _object_spread_props(_object_spread({}, props), {
87
- ref: ref
88
- }), children);
2
+ const Box = React.forwardRef(({ as = 'div', children, ...props }, ref) => {
3
+ return React.createElement(as, { ...props, ref }, children);
89
4
  });
90
5
  Box.displayName = 'Box';
91
6
  export default Box;
7
+ //# sourceMappingURL=Box.js.map
@@ -1,13 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import Box from './Box.js';
3
- var meta = {
4
- component: Box
3
+ const meta = {
4
+ component: Box,
5
5
  };
6
6
  export default meta;
7
- export var FirstStory = {
8
- render: function() {
9
- return /*#__PURE__*/ _jsx(Box, {
10
- className: "h-16 w-16 min-w-16 border border-primary2"
11
- });
12
- }
7
+ export const FirstStory = {
8
+ render: () => {
9
+ return _jsx(Box, { className: "h-16 w-16 min-w-16 border border-primary2" });
10
+ },
13
11
  };
12
+ //# sourceMappingURL=Box.stories.js.map