@once-ui-system/core 1.7.0 → 1.7.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 (178) hide show
  1. package/dist/components/Dialog.d.ts.map +1 -1
  2. package/dist/components/Dialog.js +95 -81
  3. package/dist/components/Dialog.js.map +1 -1
  4. package/dist/components/Input.js +1 -1
  5. package/dist/components/Input.js.map +1 -1
  6. package/dist/components/Input.module.scss +31 -12
  7. package/dist/components/ScrollLock.d.ts.map +1 -1
  8. package/dist/components/ScrollLock.js +91 -4
  9. package/dist/components/ScrollLock.js.map +1 -1
  10. package/dist/components/TagInput.d.ts +1 -2
  11. package/dist/components/TagInput.d.ts.map +1 -1
  12. package/dist/components/TagInput.js.map +1 -1
  13. package/dist/components/Textarea.js +6 -6
  14. package/dist/components/Textarea.js.map +1 -1
  15. package/dist/data/emoji-data.json +18 -0
  16. package/dist/package.json +1 -1
  17. package/dist/src/__tests__/Dialog.test.d.ts +1 -0
  18. package/dist/src/components/Accordion.d.ts +21 -0
  19. package/dist/src/components/AccordionGroup.d.ts +15 -0
  20. package/dist/src/components/Animation.d.ts +33 -0
  21. package/dist/src/components/Arrow.d.ts +10 -0
  22. package/dist/src/components/ArrowNavigationContext.d.ts +32 -0
  23. package/dist/src/components/AutoScroll.d.ts +13 -0
  24. package/dist/src/components/Avatar.d.ts +20 -0
  25. package/dist/src/components/AvatarGroup.d.ts +13 -0
  26. package/dist/src/components/Background.d.ts +48 -0
  27. package/dist/src/components/Badge.d.ts +16 -0
  28. package/dist/src/components/Banner.d.ts +5 -0
  29. package/dist/src/components/BlobFx.d.ts +7 -0
  30. package/dist/src/components/BlockQuote.d.ts +20 -0
  31. package/dist/src/components/Button.d.ts +26 -0
  32. package/dist/src/components/Card.d.ts +12 -0
  33. package/dist/src/components/Carousel.d.ts +31 -0
  34. package/dist/src/components/CelebrationFx.d.ts +16 -0
  35. package/dist/src/components/Checkbox.d.ts +10 -0
  36. package/dist/src/components/Chip.d.ts +16 -0
  37. package/dist/src/components/ClientFlex.d.ts +12 -0
  38. package/dist/src/components/ClientGrid.d.ts +12 -0
  39. package/dist/src/components/ColorInput.d.ts +10 -0
  40. package/dist/src/components/Column.d.ts +6 -0
  41. package/dist/src/components/CompareImage.d.ts +15 -0
  42. package/dist/src/components/ContextMenu.d.ts +21 -0
  43. package/dist/src/components/CountFx.d.ts +14 -0
  44. package/dist/src/components/CountdownFx.d.ts +10 -0
  45. package/dist/src/components/Cursor.d.ts +7 -0
  46. package/dist/src/components/CursorCard.d.ts +12 -0
  47. package/dist/src/components/DateInput.d.ts +17 -0
  48. package/dist/src/components/DatePicker.d.ts +32 -0
  49. package/dist/src/components/DateRangeInput.d.ts +14 -0
  50. package/dist/src/components/DateRangePicker.d.ts +16 -0
  51. package/dist/src/components/Dialog.d.ts +19 -0
  52. package/dist/src/components/Dropdown.d.ts +12 -0
  53. package/dist/src/components/DropdownWrapper.d.ts +28 -0
  54. package/dist/src/components/ElementType.d.ts +13 -0
  55. package/dist/src/components/EmojiPicker.d.ts +15 -0
  56. package/dist/src/components/EmojiPickerDropdown.d.ts +10 -0
  57. package/dist/src/components/Fade.d.ts +18 -0
  58. package/dist/src/components/Feedback.d.ts +15 -0
  59. package/dist/src/components/Flex.d.ts +10 -0
  60. package/dist/src/components/FlipFx.d.ts +16 -0
  61. package/dist/src/components/GlitchFx.d.ts +11 -0
  62. package/dist/src/components/Grid.d.ts +10 -0
  63. package/dist/src/components/HoloFx.d.ts +31 -0
  64. package/dist/src/components/Hover.d.ts +13 -0
  65. package/dist/src/components/HoverCard.d.ts +4 -0
  66. package/dist/src/components/Icon.d.ts +17 -0
  67. package/dist/src/components/IconButton.d.ts +22 -0
  68. package/dist/src/components/InfiniteScroll.d.ts +15 -0
  69. package/dist/src/components/InlineCode.d.ts +9 -0
  70. package/dist/src/components/Input.d.ts +23 -0
  71. package/dist/src/components/InteractiveDetails.d.ts +14 -0
  72. package/dist/src/components/Kbd.d.ts +11 -0
  73. package/dist/src/components/Line.d.ts +8 -0
  74. package/dist/src/components/List.d.ts +10 -0
  75. package/dist/src/components/ListItem.d.ts +9 -0
  76. package/dist/src/components/Logo.d.ts +17 -0
  77. package/dist/src/components/LogoCloud.d.ts +13 -0
  78. package/dist/src/components/Mask.d.ts +14 -0
  79. package/dist/src/components/MasonryGrid.d.ts +21 -0
  80. package/dist/src/components/MatrixFx.d.ts +26 -0
  81. package/dist/src/components/Media.d.ts +25 -0
  82. package/dist/src/components/Modal.d.ts +10 -0
  83. package/dist/src/components/NavIcon.d.ts +10 -0
  84. package/dist/src/components/NumberInput.d.ts +12 -0
  85. package/dist/src/components/OTPInput.d.ts +12 -0
  86. package/dist/src/components/OgCard.d.ts +33 -0
  87. package/dist/src/components/Option.d.ts +20 -0
  88. package/dist/src/components/Particle.d.ts +20 -0
  89. package/dist/src/components/PasswordInput.d.ts +3 -0
  90. package/dist/src/components/ProgressBar.d.ts +14 -0
  91. package/dist/src/components/Pulse.d.ts +12 -0
  92. package/dist/src/components/RadioButton.d.ts +14 -0
  93. package/dist/src/components/RevealFx.d.ts +15 -0
  94. package/dist/src/components/Row.d.ts +6 -0
  95. package/dist/src/components/ScrollContainer.d.ts +8 -0
  96. package/dist/src/components/ScrollLock.integration.test.d.ts +1 -0
  97. package/dist/src/components/ScrollToTop.d.ts +6 -0
  98. package/dist/src/components/Scroller.d.ts +13 -0
  99. package/dist/src/components/SegmentedControl.d.ts +17 -0
  100. package/dist/src/components/Select.d.ts +18 -0
  101. package/dist/src/components/ShineFx.d.ts +12 -0
  102. package/dist/src/components/Skeleton.d.ts +12 -0
  103. package/dist/src/components/Slider.d.ts +16 -0
  104. package/dist/src/components/SmartLink.d.ts +17 -0
  105. package/dist/src/components/Spinner.d.ts +10 -0
  106. package/dist/src/components/SplitView.d.ts +15 -0
  107. package/dist/src/components/SplitView.js +79 -0
  108. package/dist/src/components/StatusIndicator.d.ts +11 -0
  109. package/dist/src/components/StyleOverlay.d.ts +9 -0
  110. package/dist/src/components/StylePanel.d.ts +7 -0
  111. package/dist/src/components/Swiper.d.ts +16 -0
  112. package/dist/src/components/Switch.d.ts +16 -0
  113. package/dist/src/components/Table.d.ts +15 -0
  114. package/dist/src/components/Tag.d.ts +15 -0
  115. package/dist/src/components/TagInput.d.ts +8 -0
  116. package/dist/src/components/Textarea.d.ts +22 -0
  117. package/dist/src/components/ThemeSwitcher.d.ts +3 -0
  118. package/dist/src/components/TiltFx.d.ts +9 -0
  119. package/dist/src/components/Timeline.d.ts +17 -0
  120. package/dist/src/components/Toast.d.ts +11 -0
  121. package/dist/src/components/Toaster.d.ts +12 -0
  122. package/dist/src/components/ToggleButton.d.ts +23 -0
  123. package/dist/src/components/Tooltip.d.ts +12 -0
  124. package/dist/src/components/TypeFx.d.ts +14 -0
  125. package/dist/src/components/User.d.ts +15 -0
  126. package/dist/src/components/UserMenu.d.ts +12 -0
  127. package/dist/src/components/WeatherFx.d.ts +17 -0
  128. package/dist/src/components/index.d.ts +120 -0
  129. package/dist/src/contexts/DataThemeProvider.d.ts +25 -0
  130. package/dist/src/contexts/ThemeProvider.d.ts +48 -0
  131. package/dist/src/contexts/ToastProvider.d.ts +17 -0
  132. package/dist/src/contexts/index.d.ts +5 -0
  133. package/dist/src/data/emoji-data.json +16062 -0
  134. package/dist/src/index.d.ts +9 -0
  135. package/dist/src/modules/code/CodeBlock.d.ts +5 -0
  136. package/dist/src/modules/code/CodeBlock.impl.d.ts +33 -0
  137. package/dist/src/modules/data/BarChart.d.ts +5 -0
  138. package/dist/src/modules/data/BarChart.impl.d.ts +11 -0
  139. package/dist/src/modules/data/ChartHeader.d.ts +13 -0
  140. package/dist/src/modules/data/ChartStatus.d.ts +9 -0
  141. package/dist/src/modules/data/DataTooltip.d.ts +15 -0
  142. package/dist/src/modules/data/Gradient.d.ts +31 -0
  143. package/dist/src/modules/data/Legend.d.ts +14 -0
  144. package/dist/src/modules/data/LineBarChart.d.ts +5 -0
  145. package/dist/src/modules/data/LineBarChart.impl.d.ts +11 -0
  146. package/dist/src/modules/data/LineChart.d.ts +5 -0
  147. package/dist/src/modules/data/LineChart.impl.d.ts +16 -0
  148. package/dist/src/modules/data/LinearGauge.d.ts +17 -0
  149. package/dist/src/modules/data/PieChart.d.ts +5 -0
  150. package/dist/src/modules/data/PieChart.impl.d.ts +17 -0
  151. package/dist/src/modules/data/RadialGauge.d.ts +24 -0
  152. package/dist/src/modules/data/Swatch.d.ts +8 -0
  153. package/dist/src/modules/data/index.d.ts +13 -0
  154. package/dist/src/modules/data/interfaces.d.ts +52 -0
  155. package/dist/src/modules/data/utils/formatDate.d.ts +11 -0
  156. package/dist/src/modules/index.d.ts +7 -0
  157. package/dist/src/modules/media/MediaUpload.d.ts +5 -0
  158. package/dist/src/modules/media/MediaUpload.impl.d.ts +23 -0
  159. package/dist/src/modules/navigation/HeadingLink.d.ts +10 -0
  160. package/dist/src/modules/navigation/HeadingNav.d.ts +7 -0
  161. package/dist/src/modules/navigation/Kbar.d.ts +33 -0
  162. package/dist/src/modules/navigation/MegaMenu.d.ts +27 -0
  163. package/dist/src/modules/navigation/MobileMegaMenu.d.ts +27 -0
  164. package/dist/src/modules/navigation/index.d.ts +5 -0
  165. package/dist/src/utils/MissingDependency.d.ts +6 -0
  166. package/dist/src/utils/index.d.ts +2 -0
  167. package/dist/test/dialogTestUtils.d.ts.map +1 -1
  168. package/dist/test/dialogTestUtils.js +8 -5
  169. package/dist/test/dialogTestUtils.js.map +1 -1
  170. package/package.json +3 -3
  171. package/dist/internal/dialogState.d.ts +0 -17
  172. package/dist/internal/dialogState.d.ts.map +0 -1
  173. package/dist/internal/dialogState.js +0 -101
  174. package/dist/internal/dialogState.js.map +0 -1
  175. package/dist/internal/scrollLockState.d.ts +0 -15
  176. package/dist/internal/scrollLockState.d.ts.map +0 -1
  177. package/dist/internal/scrollLockState.js +0 -172
  178. package/dist/internal/scrollLockState.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../src/components/TagInput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAMN,MAAM,OAAO,CAAC;AAEf,OAAO,EAAqB,UAAU,EAAE,MAAM,GAAG,CAAC;AAElD,UAAU,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC;IACpE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,QAAA,MAAM,QAAQ,wFAqEb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"TagInput.d.ts","sourceRoot":"","sources":["../../src/components/TagInput.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAqB,UAAU,EAAE,MAAM,GAAG,CAAC;AAElD,UAAU,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC;IACpE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,QAAA,MAAM,QAAQ,4GAqEb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TagInput.js","sourceRoot":"","sources":["../../src/components/TagInput.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EACZ,QAAQ,EAIR,UAAU,GACX,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAc,MAAM,GAAG,CAAC;AAOlD,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE;IAC9D,MAA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AI,IACH,KAAK,EAAE;gBACL,MAAM,EAAE,wDAAwD;aACjE,EACD,GAAG,EAAC,GAAG,EACP,QAAQ,EAAC,QAAQ,EACjB,IAAI,QACJ,QAAQ,EAAC,IAAI,YAEZ,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACzB,KAAC,IAAI,IAEH,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,gBAC1B,cAAc,GAAG,EAAE,IAH1B,KAAK,CAIV,CACH,CAAC,GACG,CACR,GACK,CACT,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -84,7 +84,7 @@ const Textarea = forwardRef(({ id, label, placeholder, lines = 3, height = "m",
84
84
  });
85
85
  return (_jsxs(Column, { gap: "8", fillWidth: true, fitHeight: true, className: classNames(className, {
86
86
  [styles.error]: displayError && debouncedValue !== "",
87
- }), children: [_jsxs(Row, { minHeight: placeholder ? "48" : "56", transition: "micro-medium", border: "neutral-medium", background: "neutral-alpha-weak", overflow: "hidden", vertical: "stretch", className: classNames(styles.base, height && styles[height], lines !== "auto" && resize !== "none" && styles.textareaBase, radius === "none" ? "radius-none" : radius ? `radius-l-${radius}` : "radius-l"), children: [hasPrefix && (_jsx(Row, { paddingLeft: "12", className: styles.prefix, children: hasPrefix })), _jsxs(Column, { fillWidth: true, children: [_jsx("textarea", { ...props, ref: (node) => {
87
+ }), children: [_jsxs(Row, { minHeight: placeholder ? "48" : "56", transition: "micro-medium", border: "neutral-medium", background: "neutral-alpha-weak", overflow: "hidden", vertical: "stretch", className: classNames(styles.base, height && styles[height], lines !== "auto" && resize !== "none" && styles.resizeHandle, radius === "none" ? "radius-none" : radius ? `radius-l-${radius}` : "radius-l", lines !== "auto" && resize !== "none" && "radius-s-bottom-right"), children: [hasPrefix && (_jsx(Row, { paddingLeft: "12", className: styles.prefix, children: hasPrefix })), _jsxs(Column, { fillWidth: true, padding: "4", children: [_jsx("textarea", { ...props, ref: (node) => {
88
88
  if (typeof ref === "function") {
89
89
  ref(node);
90
90
  }
@@ -98,11 +98,11 @@ const Textarea = forwardRef(({ id, label, placeholder, lines = 3, height = "m",
98
98
  resize: lines === "auto" ? "none" : resize,
99
99
  }, onChange: handleChange }), !placeholder && (_jsx(Text, { as: "label", variant: "label-default-m", htmlFor: id, className: classNames(styles.label, styles.textareaLabel, {
100
100
  [styles.floating]: isFocused || isFilled,
101
- }), children: label })), children] })] }), characterCount && props.maxLength && (_jsx(Row, { paddingLeft: "16", paddingY: "8", className: styles.suffix, position: "static", children: _jsx(Text, { variant: "label-default-s", onBackground: props.maxLength - String(props.value || '').length <= 5
102
- ? "danger-weak"
103
- : props.maxLength - String(props.value || '').length <= 10
104
- ? "warning-weak"
105
- : "neutral-weak", children: props.maxLength - String(props.value || '').length }) })), hasSuffix && (_jsx(Row, { paddingRight: "12", className: styles.suffix, children: hasSuffix })), displayError && errorMessage !== false && (_jsx(Row, { paddingX: "16", id: `${id}-error`, textVariant: "body-default-s", onBackground: "danger-weak", children: displayError })), description && (_jsx(Row, { paddingX: "16", id: `${id}-description`, textVariant: "body-default-s", onBackground: "neutral-weak", children: description }))] }));
101
+ }), children: label })), children, characterCount && props.maxLength && (_jsx(Row, { fillWidth: true, paddingLeft: "12", paddingY: "4", className: styles.suffix, children: _jsx(Text, { variant: "label-default-s", onBackground: props.maxLength - String(props.value || '').length <= 5
102
+ ? "danger-weak"
103
+ : props.maxLength - String(props.value || '').length <= 10
104
+ ? "warning-weak"
105
+ : "neutral-weak", children: props.maxLength - String(props.value || '').length }) }))] }), hasSuffix && (_jsx(Row, { paddingRight: "12", className: styles.suffix, children: hasSuffix }))] }), displayError && errorMessage !== false && (_jsx(Row, { paddingX: "16", id: `${id}-error`, textVariant: "body-default-s", onBackground: "danger-weak", children: displayError })), description && (_jsx(Row, { paddingX: "16", id: `${id}-description`, textVariant: "body-default-s", onBackground: "neutral-weak", children: description }))] }));
106
106
  });
107
107
  Textarea.displayName = "Textarea";
108
108
  export { Textarea };
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../src/components/Textarea.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,EAAE,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EAEV,WAAW,GAEZ,MAAM,OAAO,CAAC;AACf,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AACtC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AA8BnD,MAAM,QAAQ,GAAG,UAAU,CACzB,CACE,EACE,EAAE,EACF,KAAK,EACL,WAAW,EACX,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,GAAG,EACZ,KAAK,GAAG,KAAK,EACb,YAAY,EACZ,WAAW,EACX,MAAM,EACN,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EACd,MAAM,GAAG,UAAU,EACnB,QAAQ,EACR,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAmB,IAAI,CAAC,CAAC;IAC/E,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAsB,IAAI,CAAC,CA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ACd,CAAC,CAAC,cAAc,YAGvB,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,GAC9C,GACH,CACP,IACM,EACR,SAAS,IAAI,CACZ,KAAC,GAAG,IAAC,YAAY,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,MAAM,YAC5C,SAAS,GACN,CACP,IACG,EACL,YAAY,IAAI,YAAY,KAAK,KAAK,IAAI,CACzC,KAAC,GAAG,IAAC,QAAQ,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAC,gBAAgB,EAAC,YAAY,EAAC,aAAa,YAC1F,YAAY,GACT,CACP,EACA,WAAW,IAAI,CACd,KAAC,GAAG,IAAC,QAAQ,EAAC,IAAI,EAAC,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,WAAW,EAAC,gBAAgB,EAAC,YAAY,EAAC,cAAc,YACjG,WAAW,GACR,CACP,IACM,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -6293,6 +6293,16 @@
6293
6293
  "fly"
6294
6294
  ]
6295
6295
  },
6296
+ {
6297
+ "char": "🪿",
6298
+ "description": "goose",
6299
+ "aliases": [
6300
+ "goose"
6301
+ ],
6302
+ "tags": [
6303
+ "honk"
6304
+ ]
6305
+ },
6296
6306
  {
6297
6307
  "char": "🐸",
6298
6308
  "description": "frog",
@@ -15078,6 +15088,14 @@
15078
15088
  ],
15079
15089
  "tags": []
15080
15090
  },
15091
+ {
15092
+ "char": "🇱🇰",
15093
+ "description": "flag: Sri Lanka",
15094
+ "aliases": [
15095
+ "sri_lanka"
15096
+ ],
15097
+ "tags": []
15098
+ },
15081
15099
  {
15082
15100
  "char": "🇱🇷",
15083
15101
  "description": "flag: Liberia",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@once-ui-system/core",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Once UI for Next.js NPM package",
5
5
  "keywords": [
6
6
  "once-ui",
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { Flex } from ".";
3
+ export interface AccordionHandle extends HTMLDivElement {
4
+ toggle: () => void;
5
+ open: () => void;
6
+ close: () => void;
7
+ }
8
+ interface AccordionProps extends Omit<React.ComponentProps<typeof Flex>, "title"> {
9
+ title: React.ReactNode;
10
+ children: React.ReactNode;
11
+ icon?: string;
12
+ iconRotation?: number;
13
+ size?: "s" | "m" | "l";
14
+ radius?: "xs" | "s" | "m" | "l" | "xl" | "full";
15
+ open?: boolean;
16
+ onToggle?: () => void;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<AccordionHandle>>;
21
+ export { Accordion };
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { Flex } from ".";
3
+ export type AccordionItem = {
4
+ title: React.ReactNode;
5
+ content: React.ReactNode;
6
+ };
7
+ export interface AccordionGroupProps extends React.ComponentProps<typeof Flex> {
8
+ items: AccordionItem[];
9
+ size?: "s" | "m" | "l";
10
+ autoCollapse?: boolean;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ }
14
+ declare const AccordionGroup: React.FC<AccordionGroupProps>;
15
+ export { AccordionGroup };
@@ -0,0 +1,33 @@
1
+ import React, { ReactNode, CSSProperties } from "react";
2
+ import { Placement } from "@floating-ui/react-dom";
3
+ import { Flex } from ".";
4
+ import { SpacingToken } from "@/types";
5
+ type TriggerType = "hover" | "click" | "manual";
6
+ type EasingCurve = "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "spring" | "bounce";
7
+ export interface AnimationProps extends React.ComponentProps<typeof Flex> {
8
+ trigger?: ReactNode;
9
+ children: ReactNode;
10
+ fade?: number;
11
+ scale?: number;
12
+ blur?: number;
13
+ slideUp?: number;
14
+ slideDown?: number;
15
+ slideLeft?: number;
16
+ slideRight?: number;
17
+ zoomIn?: number;
18
+ zoomOut?: number;
19
+ triggerType?: TriggerType;
20
+ active?: boolean;
21
+ delay?: number;
22
+ duration?: number;
23
+ easing?: EasingCurve;
24
+ transformOrigin?: string;
25
+ childrenPosition?: CSSProperties["position"];
26
+ reverse?: boolean;
27
+ touch?: "disable" | "enable" | "display";
28
+ portal?: boolean;
29
+ placement?: Placement;
30
+ offsetDistance?: SpacingToken;
31
+ }
32
+ declare const Animation: React.ForwardRefExoticComponent<Omit<AnimationProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ export { Animation };
@@ -0,0 +1,10 @@
1
+ import { Flex } from ".";
2
+ interface ArrowProps extends React.ComponentProps<typeof Flex> {
3
+ trigger: string;
4
+ scale?: number;
5
+ color?: "onBackground" | "onSolid";
6
+ style?: React.CSSProperties;
7
+ className?: string;
8
+ }
9
+ declare const Arrow: React.FC<ArrowProps>;
10
+ export { Arrow };
@@ -0,0 +1,32 @@
1
+ import React, { ReactNode } from "react";
2
+ import { ArrowNavigationOptions } from "../hooks/useArrowNavigation";
3
+ interface ArrowNavigationContextType {
4
+ focusedIndex: number;
5
+ setFocusedIndex: (index: number) => void;
6
+ handleKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
7
+ applyHighlightedState: () => void;
8
+ }
9
+ export interface ArrowNavigationProps extends Omit<ArrowNavigationOptions, "containerRef"> {
10
+ children: ReactNode;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ role?: string;
14
+ "aria-label"?: string;
15
+ trapFocus?: boolean;
16
+ focusTrapActive?: boolean;
17
+ onEscape?: () => void;
18
+ autoFocusTrap?: boolean;
19
+ restoreFocus?: boolean;
20
+ }
21
+ export declare const ArrowNavigation: React.FC<ArrowNavigationProps>;
22
+ /**
23
+ * Hook to access the ArrowNavigation context
24
+ */
25
+ export declare const useArrowNavigationContext: () => ArrowNavigationContextType;
26
+ /**
27
+ * Higher-order component to make a component navigable with arrow keys
28
+ */
29
+ export declare function withArrowNavigation<P extends object>(Component: React.ComponentType<P>, options: Omit<ArrowNavigationProps, "children">): React.FC<P & {
30
+ children?: ReactNode;
31
+ }>;
32
+ export default ArrowNavigation;
@@ -0,0 +1,13 @@
1
+ import { Row } from ".";
2
+ import React from "react";
3
+ interface AutoScrollProps extends React.ComponentProps<typeof Row> {
4
+ children: React.ReactNode;
5
+ speed?: "slow" | "medium" | "fast";
6
+ hover?: "slow" | "pause" | "none";
7
+ reverse?: boolean;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ scrollGap?: number | string;
11
+ }
12
+ declare const AutoScroll: React.ForwardRefExoticComponent<Omit<AutoScrollProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { AutoScroll };
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { Flex } from ".";
3
+ import { IconName } from "@/icons";
4
+ interface AvatarProps extends React.ComponentProps<typeof Flex> {
5
+ size?: "xs" | "s" | "m" | "l" | "xl" | number;
6
+ value?: string;
7
+ src?: string;
8
+ unoptimized?: boolean;
9
+ loading?: boolean;
10
+ empty?: boolean;
11
+ icon?: IconName;
12
+ statusIndicator?: {
13
+ color: "green" | "yellow" | "red" | "gray";
14
+ };
15
+ style?: React.CSSProperties;
16
+ className?: string;
17
+ }
18
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ export { Avatar };
20
+ export type { AvatarProps };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { AvatarProps, Flex } from ".";
3
+ interface AvatarGroupProps extends React.ComponentProps<typeof Flex> {
4
+ avatars: AvatarProps[];
5
+ size?: "xs" | "s" | "m" | "l" | "xl";
6
+ reverse?: boolean;
7
+ limit?: number;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ }
11
+ declare const AvatarGroup: React.ForwardRefExoticComponent<Omit<AvatarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ export { AvatarGroup };
13
+ export type { AvatarGroupProps };
@@ -0,0 +1,48 @@
1
+ import React from "react";
2
+ import { Flex, MaskProps } from ".";
3
+ import { DisplayProps } from "../interfaces";
4
+ import { SpacingToken } from "../types";
5
+ interface GradientProps {
6
+ display?: boolean;
7
+ opacity?: DisplayProps["opacity"];
8
+ x?: number;
9
+ y?: number;
10
+ width?: number;
11
+ height?: number;
12
+ tilt?: number;
13
+ colorStart?: string;
14
+ colorEnd?: string;
15
+ }
16
+ interface DotsProps {
17
+ display?: boolean;
18
+ opacity?: DisplayProps["opacity"];
19
+ color?: string;
20
+ size?: SpacingToken;
21
+ }
22
+ interface GridProps {
23
+ display?: boolean;
24
+ opacity?: DisplayProps["opacity"];
25
+ color?: string;
26
+ width?: string;
27
+ height?: string;
28
+ }
29
+ interface LinesProps {
30
+ display?: boolean;
31
+ opacity?: DisplayProps["opacity"];
32
+ size?: SpacingToken;
33
+ thickness?: number;
34
+ angle?: number;
35
+ color?: string;
36
+ }
37
+ interface BackgroundProps extends React.ComponentProps<typeof Flex> {
38
+ gradient?: GradientProps;
39
+ dots?: DotsProps;
40
+ grid?: GridProps;
41
+ lines?: LinesProps;
42
+ mask?: MaskProps;
43
+ className?: string;
44
+ style?: React.CSSProperties;
45
+ children?: React.ReactNode;
46
+ }
47
+ declare const Background: React.ForwardRefExoticComponent<Omit<BackgroundProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
+ export { Background };
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { Flex } from ".";
3
+ import { IconName } from "../icons";
4
+ export interface BadgeProps extends React.ComponentProps<typeof Flex> {
5
+ title?: string;
6
+ icon?: IconName;
7
+ arrow?: boolean;
8
+ children?: React.ReactNode;
9
+ href?: string;
10
+ effect?: boolean;
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ id?: string;
14
+ }
15
+ declare const Badge: React.ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
16
+ export { Badge };
@@ -0,0 +1,5 @@
1
+ import { Row } from "./Row";
2
+ interface BannerProps extends React.ComponentProps<typeof Row> {
3
+ }
4
+ declare const Banner: import("react").ForwardRefExoticComponent<Omit<BannerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export { Banner };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Row } from ".";
3
+ export interface BlobFxProps extends React.ComponentProps<typeof Row> {
4
+ seed?: number;
5
+ }
6
+ declare const BlobFx: React.FC<BlobFxProps>;
7
+ export { BlobFx };
@@ -0,0 +1,20 @@
1
+ import { Column } from ".";
2
+ interface BlockQuoteProps extends React.ComponentProps<typeof Column> {
3
+ children: React.ReactNode;
4
+ preline?: React.ReactNode;
5
+ subline?: React.ReactNode;
6
+ separator?: "top" | "bottom" | "both" | "none";
7
+ author?: {
8
+ name?: React.ReactNode;
9
+ avatar?: string;
10
+ };
11
+ link?: {
12
+ href: string;
13
+ label: string;
14
+ };
15
+ style?: React.CSSProperties;
16
+ className?: string;
17
+ align?: "center" | "left" | "right";
18
+ }
19
+ declare const BlockQuote: import("react").ForwardRefExoticComponent<Omit<BlockQuoteProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
+ export { BlockQuote };
@@ -0,0 +1,26 @@
1
+ import React, { ReactNode } from "react";
2
+ import { IconName } from "../icons";
3
+ interface CommonProps {
4
+ variant?: "primary" | "secondary" | "tertiary" | "danger";
5
+ size?: "xs" | "s" | "m" | "l" | "xl";
6
+ radius?: "none" | "top" | "right" | "bottom" | "left" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
7
+ label?: string;
8
+ weight?: "default" | "strong";
9
+ rounded?: boolean;
10
+ prefixIcon?: IconName;
11
+ suffixIcon?: IconName;
12
+ loading?: boolean;
13
+ disabled?: boolean;
14
+ fillWidth?: boolean;
15
+ horizontal?: "start" | "center" | "end" | "between";
16
+ children?: ReactNode;
17
+ href?: string;
18
+ className?: string;
19
+ style?: React.CSSProperties;
20
+ id?: string;
21
+ arrowIcon?: boolean;
22
+ }
23
+ export type ButtonProps = CommonProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
24
+ export type AnchorProps = CommonProps & React.AnchorHTMLAttributes<HTMLAnchorElement>;
25
+ declare const Button: React.ForwardRefExoticComponent<(ButtonProps | AnchorProps) & React.RefAttributes<HTMLButtonElement>>;
26
+ export { Button };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { Flex } from ".";
3
+ interface CardProps extends React.ComponentProps<typeof Flex> {
4
+ children?: React.ReactNode;
5
+ href?: string;
6
+ onClick?: () => void;
7
+ fillHeight?: boolean;
8
+ style?: React.CSSProperties;
9
+ className?: string;
10
+ }
11
+ declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ export { Card };
@@ -0,0 +1,31 @@
1
+ import { SpacingToken } from "@/types";
2
+ import { Flex } from ".";
3
+ interface CarouselItem {
4
+ slide: string | React.ReactNode;
5
+ alt?: string;
6
+ }
7
+ interface ThumbnailItem {
8
+ scaling?: number;
9
+ height?: SpacingToken | number;
10
+ sizes?: string;
11
+ }
12
+ interface CarouselProps extends React.ComponentProps<typeof Flex> {
13
+ items: CarouselItem[];
14
+ controls?: boolean;
15
+ priority?: boolean;
16
+ fill?: boolean;
17
+ indicator?: "line" | "thumbnail" | false;
18
+ translateY?: SpacingToken | number;
19
+ aspectRatio?: string;
20
+ sizes?: string;
21
+ revealedByDefault?: boolean;
22
+ thumbnail?: ThumbnailItem;
23
+ play?: {
24
+ auto?: boolean;
25
+ interval?: number;
26
+ controls?: boolean;
27
+ progress?: boolean;
28
+ };
29
+ }
30
+ declare const Carousel: React.FC<CarouselProps>;
31
+ export { Carousel };
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { Flex } from ".";
3
+ type CelebrationType = "confetti" | "fireworks";
4
+ interface CelebrationFxProps extends React.ComponentProps<typeof Flex> {
5
+ type?: CelebrationType;
6
+ speed?: number;
7
+ colors?: string[];
8
+ intensity?: number;
9
+ duration?: number;
10
+ trigger?: "mount" | "hover" | "manual" | "click";
11
+ active?: boolean;
12
+ reducedMotion?: boolean | "auto";
13
+ children?: React.ReactNode;
14
+ }
15
+ declare const CelebrationFx: React.ForwardRefExoticComponent<Omit<CelebrationFxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ export { CelebrationFx };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { InteractiveDetailsProps } from ".";
3
+ interface CheckboxProps extends Omit<InteractiveDetailsProps, "onClick">, React.InputHTMLAttributes<HTMLInputElement> {
4
+ isChecked?: boolean;
5
+ isIndeterminate?: boolean;
6
+ onToggle?: () => void;
7
+ }
8
+ declare const Checkbox: React.FC<CheckboxProps>;
9
+ export { Checkbox };
10
+ export type { CheckboxProps };
@@ -0,0 +1,16 @@
1
+ import React, { ReactNode, MouseEventHandler } from "react";
2
+ import { IconButtonProps, Flex } from ".";
3
+ import { IconName } from "../icons";
4
+ interface ChipProps extends React.ComponentProps<typeof Flex> {
5
+ label: string;
6
+ selected?: boolean;
7
+ prefixIcon?: IconName;
8
+ onRemove?: () => void;
9
+ onClick?: MouseEventHandler<HTMLDivElement>;
10
+ children?: ReactNode;
11
+ iconButtonProps?: Partial<IconButtonProps>;
12
+ style?: React.CSSProperties;
13
+ className?: string;
14
+ }
15
+ declare const Chip: React.FC<ChipProps>;
16
+ export { Chip };
@@ -0,0 +1,12 @@
1
+ import { FlexProps, StyleProps, DisplayProps, FlexBreakpointProps } from "../interfaces";
2
+ interface ClientFlexProps extends FlexProps, StyleProps, DisplayProps {
3
+ cursor?: StyleProps["cursor"];
4
+ xl?: FlexBreakpointProps;
5
+ l?: FlexBreakpointProps;
6
+ m?: FlexBreakpointProps;
7
+ s?: FlexBreakpointProps;
8
+ xs?: FlexBreakpointProps;
9
+ hide?: boolean;
10
+ }
11
+ declare const ClientFlex: import("react").ForwardRefExoticComponent<ClientFlexProps & import("react").RefAttributes<HTMLDivElement>>;
12
+ export { ClientFlex };
@@ -0,0 +1,12 @@
1
+ import { GridProps, StyleProps, DisplayProps, GridBreakpointProps } from "../interfaces";
2
+ interface ClientGridProps extends GridProps, StyleProps, DisplayProps {
3
+ cursor?: StyleProps["cursor"];
4
+ xl?: GridBreakpointProps;
5
+ l?: GridBreakpointProps;
6
+ m?: GridBreakpointProps;
7
+ s?: GridBreakpointProps;
8
+ xs?: GridBreakpointProps;
9
+ hide?: boolean;
10
+ }
11
+ declare const ClientGrid: import("react").ForwardRefExoticComponent<ClientGridProps & import("react").RefAttributes<HTMLDivElement>>;
12
+ export { ClientGrid };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { InputProps } from ".";
3
+ interface ColorInputProps extends Omit<InputProps, "onChange" | "value"> {
4
+ value: string;
5
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ supportAlpha?: boolean;
7
+ }
8
+ declare const ColorInput: React.ForwardRefExoticComponent<ColorInputProps & React.RefAttributes<HTMLInputElement>>;
9
+ export { ColorInput };
10
+ export type { ColorInputProps };
@@ -0,0 +1,6 @@
1
+ import { Flex } from ".";
2
+ export interface ColumnProps extends React.ComponentProps<typeof Flex> {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare const Column: import("react").ForwardRefExoticComponent<Omit<ColumnProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export { Column };
@@ -0,0 +1,15 @@
1
+ import { Flex } from ".";
2
+ interface SideContent {
3
+ src: string | React.ReactNode;
4
+ alt?: string;
5
+ }
6
+ interface CompareImageProps extends React.ComponentProps<typeof Flex> {
7
+ leftContent: SideContent;
8
+ rightContent: SideContent;
9
+ aspectRatio?: string;
10
+ }
11
+ declare const CompareImage: {
12
+ ({ leftContent, rightContent, aspectRatio, ...rest }: CompareImageProps): import("react/jsx-runtime").JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export { CompareImage };
@@ -0,0 +1,21 @@
1
+ import React, { ReactNode } from "react";
2
+ import { Placement } from "@floating-ui/react-dom";
3
+ export interface ContextMenuProps {
4
+ children: ReactNode;
5
+ dropdown: ReactNode;
6
+ placement?: Placement;
7
+ fillWidth?: boolean;
8
+ minWidth?: number;
9
+ maxWidth?: number;
10
+ minHeight?: number;
11
+ style?: React.CSSProperties;
12
+ className?: string;
13
+ onSelect?: (value: string) => void;
14
+ closeAfterClick?: boolean;
15
+ isOpen?: boolean;
16
+ onOpenChange?: (isOpen: boolean) => void;
17
+ selectedOption?: string;
18
+ disabled?: boolean;
19
+ }
20
+ declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLDivElement>>;
21
+ export { ContextMenu };
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { Text } from ".";
3
+ export interface CountFxProps extends React.ComponentProps<typeof Text> {
4
+ value: number;
5
+ speed?: number;
6
+ easing?: "linear" | "ease-out" | "ease-in-out";
7
+ format?: (value: number) => string;
8
+ separator?: string;
9
+ decimals?: number;
10
+ effect?: "simple" | "wheel" | "smooth";
11
+ children?: React.ReactNode;
12
+ }
13
+ declare const CountFx: React.FC<CountFxProps>;
14
+ export { CountFx };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { CountFxProps } from ".";
3
+ export interface CountdownFxProps extends Omit<CountFxProps, 'value' | 'format' | 'separator' | 'effect'> {
4
+ targetDate: Date | string;
5
+ format?: "HH:MM:SS" | "DD:HH:MM:SS" | "MM:SS";
6
+ effect?: CountFxProps['effect'];
7
+ onComplete?: () => void;
8
+ }
9
+ declare const CountdownFx: React.FC<CountdownFxProps>;
10
+ export { CountdownFx };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface CursorProps {
3
+ cursor: React.ReactNode;
4
+ elementRef: React.RefObject<HTMLElement | null>;
5
+ }
6
+ export declare const Cursor: React.FC<CursorProps>;
7
+ export default Cursor;