@remember-web/primitive 0.3.7 → 0.4.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 (168) hide show
  1. package/dist/src/Avatars/Avatar/index.cjs.js +1 -1
  2. package/dist/src/Avatars/Avatar/index.esm.js +2 -2
  3. package/dist/src/Avatars/Avatar/styles.cjs.js.map +1 -1
  4. package/dist/src/Avatars/Avatar/styles.esm.js +1 -1
  5. package/dist/src/Avatars/Avatar/styles.esm.js.map +1 -1
  6. package/dist/src/Badge/Badge.cjs.js.map +1 -1
  7. package/dist/src/Badge/Badge.esm.js.map +1 -1
  8. package/dist/src/Badge/style.cjs.js.map +1 -1
  9. package/dist/src/Badge/style.esm.js.map +1 -1
  10. package/dist/src/Badge/utils.cjs.js.map +1 -1
  11. package/dist/src/Badge/utils.esm.js.map +1 -1
  12. package/dist/src/Buttons/Button/const.cjs.js +12 -8
  13. package/dist/src/Buttons/Button/const.cjs.js.map +1 -1
  14. package/dist/src/Buttons/Button/const.d.ts +11 -7
  15. package/dist/src/Buttons/Button/const.d.ts.map +1 -1
  16. package/dist/src/Buttons/Button/const.esm.js +13 -9
  17. package/dist/src/Buttons/Button/const.esm.js.map +1 -1
  18. package/dist/src/Buttons/Button/index.cjs.js +1 -1
  19. package/dist/src/Buttons/Button/index.esm.js +1 -1
  20. package/dist/src/Buttons/Button/styles.cjs.js +1 -1
  21. package/dist/src/Buttons/Button/styles.cjs.js.map +1 -1
  22. package/dist/src/Buttons/Button/styles.esm.js +1 -1
  23. package/dist/src/Buttons/Button/styles.esm.js.map +1 -1
  24. package/dist/src/Chips/Chip/const.cjs.js.map +1 -1
  25. package/dist/src/Chips/Chip/const.esm.js +1 -1
  26. package/dist/src/Chips/Chip/const.esm.js.map +1 -1
  27. package/dist/src/Chips/Chip/index.cjs.js +1 -1
  28. package/dist/src/Chips/Chip/index.cjs.js.map +1 -1
  29. package/dist/src/Chips/Chip/index.esm.js +1 -1
  30. package/dist/src/Chips/Chip/index.esm.js.map +1 -1
  31. package/dist/src/Chips/Chip/styles.cjs.js +1 -1
  32. package/dist/src/Chips/Chip/styles.cjs.js.map +1 -1
  33. package/dist/src/Chips/Chip/styles.esm.js +1 -1
  34. package/dist/src/Chips/Chip/styles.esm.js.map +1 -1
  35. package/dist/src/Chips/Chip/typeGuard.cjs.js.map +1 -1
  36. package/dist/src/Chips/Chip/typeGuard.esm.js.map +1 -1
  37. package/dist/src/Common/Divider/index.cjs.js +1 -1
  38. package/dist/src/Common/Divider/index.esm.js +1 -1
  39. package/dist/src/Common/Flex/index.cjs.js +1 -1
  40. package/dist/src/Common/Flex/index.esm.js +1 -1
  41. package/dist/src/Common/Grid/index.cjs.js +1 -1
  42. package/dist/src/Common/Grid/index.esm.js +1 -1
  43. package/dist/src/Common/Skeleton/index.cjs.js +1 -1
  44. package/dist/src/Common/Skeleton/index.cjs.js.map +1 -1
  45. package/dist/src/Common/Skeleton/index.esm.js +1 -1
  46. package/dist/src/Common/Skeleton/index.esm.js.map +1 -1
  47. package/dist/src/Common/Skeleton/styles.cjs.js.map +1 -1
  48. package/dist/src/Common/Skeleton/styles.esm.js.map +1 -1
  49. package/dist/src/Common/Typography/index.cjs.js +1 -1
  50. package/dist/src/Common/Typography/index.esm.js +1 -1
  51. package/dist/src/Common/Typography/styles.cjs.js.map +1 -1
  52. package/dist/src/Common/Typography/styles.esm.js.map +1 -1
  53. package/dist/src/Control/BaseToggle/ToggleIcon/index.esm.js +1 -1
  54. package/dist/src/Control/BaseToggle/index.cjs.js +1 -1
  55. package/dist/src/Control/BaseToggle/index.esm.js +1 -1
  56. package/dist/src/Control/BaseToggle/styles.cjs.js.map +1 -1
  57. package/dist/src/Control/BaseToggle/styles.esm.js.map +1 -1
  58. package/dist/src/Control/Checkbox.cjs.js +1 -1
  59. package/dist/src/Control/Checkbox.esm.js +1 -1
  60. package/dist/src/Control/Radio.cjs.js +1 -1
  61. package/dist/src/Control/Radio.esm.js +1 -1
  62. package/dist/src/Control/Switch/index.cjs.js +1 -1
  63. package/dist/src/Control/Switch/index.esm.js +1 -1
  64. package/dist/src/Control/Switch/styles.cjs.js.map +1 -1
  65. package/dist/src/Control/Switch/styles.esm.js.map +1 -1
  66. package/dist/src/Control/Toggle.cjs.js +1 -1
  67. package/dist/src/Control/Toggle.cjs.js.map +1 -1
  68. package/dist/src/Control/Toggle.esm.js +1 -1
  69. package/dist/src/Control/Toggle.esm.js.map +1 -1
  70. package/dist/src/Floating/DropdownMenu/DropdownMenuSection.cjs.js +1 -1
  71. package/dist/src/Floating/DropdownMenu/DropdownMenuSection.cjs.js.map +1 -1
  72. package/dist/src/Floating/DropdownMenu/DropdownMenuSection.esm.js +1 -1
  73. package/dist/src/Floating/DropdownMenu/DropdownMenuSection.esm.js.map +1 -1
  74. package/dist/src/Floating/DropdownMenu/index.cjs.js +1 -1
  75. package/dist/src/Floating/DropdownMenu/index.cjs.js.map +1 -1
  76. package/dist/src/Floating/DropdownMenu/index.esm.js +2 -2
  77. package/dist/src/Floating/DropdownMenu/index.esm.js.map +1 -1
  78. package/dist/src/Floating/DropdownMenu/styles.cjs.js +1 -1
  79. package/dist/src/Floating/DropdownMenu/styles.cjs.js.map +1 -1
  80. package/dist/src/Floating/DropdownMenu/styles.esm.js +1 -1
  81. package/dist/src/Floating/DropdownMenu/styles.esm.js.map +1 -1
  82. package/dist/src/Floating/Popover/index.cjs.js +1 -1
  83. package/dist/src/Floating/Popover/index.cjs.js.map +1 -1
  84. package/dist/src/Floating/Popover/index.esm.js +1 -1
  85. package/dist/src/Floating/Popover/index.esm.js.map +1 -1
  86. package/dist/src/Floating/Popover/styles.cjs.js.map +1 -1
  87. package/dist/src/Floating/Popover/styles.esm.js.map +1 -1
  88. package/dist/src/Floating/Tooltip/index.esm.js +1 -1
  89. package/dist/src/Floating/Tooltip/styles.cjs.js.map +1 -1
  90. package/dist/src/Floating/Tooltip/styles.esm.js.map +1 -1
  91. package/dist/src/Floating/Tooltip/types.cjs.js.map +1 -1
  92. package/dist/src/Floating/Tooltip/types.esm.js.map +1 -1
  93. package/dist/src/Inputs/Select/DesignedSelect/const.cjs.js.map +1 -1
  94. package/dist/src/Inputs/Select/DesignedSelect/const.esm.js.map +1 -1
  95. package/dist/src/Inputs/Select/DesignedSelect/index.cjs.js +1 -1
  96. package/dist/src/Inputs/Select/DesignedSelect/index.esm.js +1 -1
  97. package/dist/src/Inputs/Select/DesignedSelect/styles.cjs.js.map +1 -1
  98. package/dist/src/Inputs/Select/DesignedSelect/styles.esm.js.map +1 -1
  99. package/dist/src/Inputs/Select/NativeSelect/index.cjs.js +1 -1
  100. package/dist/src/Inputs/Select/NativeSelect/index.esm.js +1 -1
  101. package/dist/src/Inputs/Select/NativeSelect/styles.cjs.js.map +1 -1
  102. package/dist/src/Inputs/Select/NativeSelect/styles.esm.js.map +1 -1
  103. package/dist/src/Inputs/Select/index.cjs.js +2 -2
  104. package/dist/src/Inputs/Select/index.esm.js +2 -2
  105. package/dist/src/Inputs/Select/utils.cjs.js.map +1 -1
  106. package/dist/src/Inputs/Select/utils.esm.js.map +1 -1
  107. package/dist/src/Inputs/TextInput/index.cjs.js +1 -1
  108. package/dist/src/Inputs/TextInput/index.esm.js +1 -1
  109. package/dist/src/Inputs/TextInput/styles.cjs.js.map +1 -1
  110. package/dist/src/Inputs/TextInput/styles.esm.js.map +1 -1
  111. package/dist/src/Labels/Label/index.cjs.js +1 -1
  112. package/dist/src/Labels/Label/index.cjs.js.map +1 -1
  113. package/dist/src/Labels/Label/index.esm.js +1 -1
  114. package/dist/src/Labels/Label/index.esm.js.map +1 -1
  115. package/dist/src/Labels/Label/styles.cjs.js.map +1 -1
  116. package/dist/src/Labels/Label/styles.esm.js.map +1 -1
  117. package/dist/src/Logos/EnvLabel/index.d.ts +1 -0
  118. package/dist/src/Logos/EnvLabel/index.d.ts.map +1 -1
  119. package/dist/src/Logos/RememberLogo/index.cjs.js +1 -1
  120. package/dist/src/Logos/RememberLogo/index.esm.js +1 -1
  121. package/dist/src/Logos/RememberMobileLogo/index.cjs.js +1 -1
  122. package/dist/src/Logos/RememberMobileLogo/index.esm.js +1 -1
  123. package/dist/src/Logos/RememberServiceLogo/index.cjs.js +1 -1
  124. package/dist/src/Logos/RememberServiceLogo/index.cjs.js.map +1 -1
  125. package/dist/src/Logos/RememberServiceLogo/index.esm.js +1 -1
  126. package/dist/src/Logos/RememberServiceLogo/index.esm.js.map +1 -1
  127. package/dist/src/Logos/RememberServiceLogo/style.cjs.js.map +1 -1
  128. package/dist/src/Logos/RememberServiceLogo/style.esm.js.map +1 -1
  129. package/dist/src/Logos/RememberSquareLogo/index.cjs.js +1 -1
  130. package/dist/src/Logos/RememberSquareLogo/index.esm.js +1 -1
  131. package/dist/src/Modals/Dialog/index.cjs.js +1 -1
  132. package/dist/src/Modals/Dialog/index.esm.js +1 -1
  133. package/dist/src/Modals/Dialog/styles.cjs.js.map +1 -1
  134. package/dist/src/Modals/Dialog/styles.esm.js.map +1 -1
  135. package/dist/src/Paginations/styles.cjs.js.map +1 -1
  136. package/dist/src/Paginations/styles.esm.js.map +1 -1
  137. package/dist/src/Paginations/usePagination.cjs.js.map +1 -1
  138. package/dist/src/Paginations/usePagination.esm.js.map +1 -1
  139. package/dist/src/hooks/useMouseEventAway.cjs.js.map +1 -1
  140. package/dist/src/hooks/useMouseEventAway.esm.js.map +1 -1
  141. package/package.json +4 -6
  142. package/src/Avatars/Avatar/Avatar.stories.tsx +1 -1
  143. package/src/Badge/Badge.stories.tsx +1 -1
  144. package/src/Buttons/Button/Button.stories.tsx +1 -1
  145. package/src/Buttons/Button/const.ts +11 -7
  146. package/src/Buttons/Button/styles.ts +1 -1
  147. package/src/Chips/Chip/Chip.stories.tsx +1 -1
  148. package/src/Common/Divider/Divider.stories.tsx +1 -1
  149. package/src/Common/Skeleton/Skeleton.stories.tsx +1 -1
  150. package/src/Common/Spinner/Spinner.stories.tsx +1 -1
  151. package/src/Common/Typography/Typography.stories.tsx +1 -1
  152. package/src/Control/Checkbox.stories.tsx +2 -2
  153. package/src/Control/Radio.stories.tsx +1 -1
  154. package/src/Control/Switch/Switch.stories.tsx +2 -2
  155. package/src/Control/Toggle.stories.tsx +2 -2
  156. package/src/Floating/DropdownMenu/DropdownMenu.stories.tsx +1 -1
  157. package/src/Floating/Popover/Popover.stories.tsx +1 -1
  158. package/src/Floating/Tooltip/Tooltip.stories.tsx +1 -1
  159. package/src/Inputs/Select/Select.stories.tsx +1 -1
  160. package/src/Inputs/TextInput/TextInput.stories.tsx +1 -1
  161. package/src/Labels/Label/Label.stories.tsx +1 -1
  162. package/src/Logos/RememberLogo/RememberLogo.stories.tsx +1 -1
  163. package/src/Logos/RememberMobileLogo/RememberMobileLogo.stories.tsx +1 -1
  164. package/src/Logos/RememberServiceLogo/RememberServiceLogo.stories.tsx +1 -1
  165. package/src/Logos/RememberSquareLogo/RememberSquareLogo.stories.tsx +1 -1
  166. package/src/Modals/Dialog/Dialog.stories.tsx +1 -1
  167. package/src/Paginations/CompactPagination/CompactPagination.stories.tsx +1 -1
  168. package/src/Paginations/Pagination/Pagination.stories.tsx +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useMouseEventAway.cjs.js","sources":["../../../src/hooks/useMouseEventAway.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\ntype MouseEventNames = Extract<\n keyof DocumentEventMap,\n `mouse${string}` | `pointer${string}` | `touch${string}` | 'click'\n>;\n\nexport default function useMouseEventAway<\n T extends HTMLElement,\n E extends MouseEventNames,\n>(eventName: E, callback: (e: DocumentEventMap[E]) => void) {\n const ref = useRef<T | null>(null);\n const callbackRef = useRef(callback);\n callbackRef.current = callback;\n\n useEffect(() => {\n function clickAwayHandler(e: DocumentEventMap[E]) {\n if (!(e.target instanceof Node)) {\n return;\n }\n\n if (ref.current && !ref.current.contains(e.target)) {\n callbackRef.current(e);\n }\n }\n\n document.addEventListener(eventName, clickAwayHandler, true);\n\n return () => {\n document.removeEventListener(eventName, clickAwayHandler, true);\n };\n }, [eventName]);\n\n return ref;\n}\n"],"names":["useMouseEventAway","eventName","callback","ref","useRef","callbackRef","current","useEffect","clickAwayHandler","e","target","Node","contains","document","addEventListener","removeEventListener"],"mappings":";;;;AAOe,SAASA,iBAAiBA,CAGvCC,SAAY,EAAEC,QAA0C,EAAE;AAC1D,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAAW,IAAI,CAAC,CAAA;AAClC,EAAA,IAAMC,WAAW,GAAGD,YAAM,CAACF,QAAQ,CAAC,CAAA;EACpCG,WAAW,CAACC,OAAO,GAAGJ,QAAQ,CAAA;AAE9BK,EAAAA,eAAS,CAAC,YAAM;IACd,SAASC,gBAAgBA,CAACC,CAAsB,EAAE;AAChD,MAAA,IAAI,EAAEA,CAAC,CAACC,MAAM,YAAYC,IAAI,CAAC,EAAE;AAC/B,QAAA,OAAA;AACF,OAAA;AAEA,MAAA,IAAIR,GAAG,CAACG,OAAO,IAAI,CAACH,GAAG,CAACG,OAAO,CAACM,QAAQ,CAACH,CAAC,CAACC,MAAM,CAAC,EAAE;AAClDL,QAAAA,WAAW,CAACC,OAAO,CAACG,CAAC,CAAC,CAAA;AACxB,OAAA;AACF,KAAA;IAEAI,QAAQ,CAACC,gBAAgB,CAACb,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAE5D,IAAA,OAAO,YAAM;MACXK,QAAQ,CAACE,mBAAmB,CAACd,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC,CAAA;KAChE,CAAA;AACH,GAAC,EAAE,CAACP,SAAS,CAAC,CAAC,CAAA;AAEf,EAAA,OAAOE,GAAG,CAAA;AACZ;;;;"}
1
+ {"version":3,"file":"useMouseEventAway.cjs.js","sources":["../../../src/hooks/useMouseEventAway.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\ntype MouseEventNames = Extract<\n keyof DocumentEventMap,\n `mouse${string}` | `pointer${string}` | `touch${string}` | 'click'\n>;\n\nexport default function useMouseEventAway<\n T extends HTMLElement,\n E extends MouseEventNames,\n>(eventName: E, callback: (e: DocumentEventMap[E]) => void) {\n const ref = useRef<T | null>(null);\n const callbackRef = useRef(callback);\n callbackRef.current = callback;\n\n useEffect(() => {\n function clickAwayHandler(e: DocumentEventMap[E]) {\n if (!(e.target instanceof Node)) {\n return;\n }\n\n if (ref.current && !ref.current.contains(e.target)) {\n callbackRef.current(e);\n }\n }\n\n document.addEventListener(eventName, clickAwayHandler, true);\n\n return () => {\n document.removeEventListener(eventName, clickAwayHandler, true);\n };\n }, [eventName]);\n\n return ref;\n}\n"],"names":["useMouseEventAway","eventName","callback","ref","useRef","callbackRef","current","useEffect","clickAwayHandler","e","target","Node","contains","document","addEventListener","removeEventListener"],"mappings":";;;;AAOe,SAASA,iBAAiBA,CAGvCC,SAAY,EAAEC,QAA0C,EAAE;AAC1D,EAAA,IAAMC,GAAG,GAAGC,YAAM,CAAW,IAAI,CAAC;AAClC,EAAA,IAAMC,WAAW,GAAGD,YAAM,CAACF,QAAQ,CAAC;EACpCG,WAAW,CAACC,OAAO,GAAGJ,QAAQ;AAE9BK,EAAAA,eAAS,CAAC,YAAM;IACd,SAASC,gBAAgBA,CAACC,CAAsB,EAAE;AAChD,MAAA,IAAI,EAAEA,CAAC,CAACC,MAAM,YAAYC,IAAI,CAAC,EAAE;AAC/B,QAAA;AACF;AAEA,MAAA,IAAIR,GAAG,CAACG,OAAO,IAAI,CAACH,GAAG,CAACG,OAAO,CAACM,QAAQ,CAACH,CAAC,CAACC,MAAM,CAAC,EAAE;AAClDL,QAAAA,WAAW,CAACC,OAAO,CAACG,CAAC,CAAC;AACxB;AACF;IAEAI,QAAQ,CAACC,gBAAgB,CAACb,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC;AAE5D,IAAA,OAAO,YAAM;MACXK,QAAQ,CAACE,mBAAmB,CAACd,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC;KAChE;AACH,GAAC,EAAE,CAACP,SAAS,CAAC,CAAC;AAEf,EAAA,OAAOE,GAAG;AACZ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useMouseEventAway.esm.js","sources":["../../../src/hooks/useMouseEventAway.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\ntype MouseEventNames = Extract<\n keyof DocumentEventMap,\n `mouse${string}` | `pointer${string}` | `touch${string}` | 'click'\n>;\n\nexport default function useMouseEventAway<\n T extends HTMLElement,\n E extends MouseEventNames,\n>(eventName: E, callback: (e: DocumentEventMap[E]) => void) {\n const ref = useRef<T | null>(null);\n const callbackRef = useRef(callback);\n callbackRef.current = callback;\n\n useEffect(() => {\n function clickAwayHandler(e: DocumentEventMap[E]) {\n if (!(e.target instanceof Node)) {\n return;\n }\n\n if (ref.current && !ref.current.contains(e.target)) {\n callbackRef.current(e);\n }\n }\n\n document.addEventListener(eventName, clickAwayHandler, true);\n\n return () => {\n document.removeEventListener(eventName, clickAwayHandler, true);\n };\n }, [eventName]);\n\n return ref;\n}\n"],"names":["useMouseEventAway","eventName","callback","ref","useRef","callbackRef","current","useEffect","clickAwayHandler","e","target","Node","contains","document","addEventListener","removeEventListener"],"mappings":";;AAOe,SAASA,iBAAiBA,CAGvCC,SAAY,EAAEC,QAA0C,EAAE;AAC1D,EAAA,IAAMC,GAAG,GAAGC,MAAM,CAAW,IAAI,CAAC,CAAA;AAClC,EAAA,IAAMC,WAAW,GAAGD,MAAM,CAACF,QAAQ,CAAC,CAAA;EACpCG,WAAW,CAACC,OAAO,GAAGJ,QAAQ,CAAA;AAE9BK,EAAAA,SAAS,CAAC,YAAM;IACd,SAASC,gBAAgBA,CAACC,CAAsB,EAAE;AAChD,MAAA,IAAI,EAAEA,CAAC,CAACC,MAAM,YAAYC,IAAI,CAAC,EAAE;AAC/B,QAAA,OAAA;AACF,OAAA;AAEA,MAAA,IAAIR,GAAG,CAACG,OAAO,IAAI,CAACH,GAAG,CAACG,OAAO,CAACM,QAAQ,CAACH,CAAC,CAACC,MAAM,CAAC,EAAE;AAClDL,QAAAA,WAAW,CAACC,OAAO,CAACG,CAAC,CAAC,CAAA;AACxB,OAAA;AACF,KAAA;IAEAI,QAAQ,CAACC,gBAAgB,CAACb,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAE5D,IAAA,OAAO,YAAM;MACXK,QAAQ,CAACE,mBAAmB,CAACd,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC,CAAA;KAChE,CAAA;AACH,GAAC,EAAE,CAACP,SAAS,CAAC,CAAC,CAAA;AAEf,EAAA,OAAOE,GAAG,CAAA;AACZ;;;;"}
1
+ {"version":3,"file":"useMouseEventAway.esm.js","sources":["../../../src/hooks/useMouseEventAway.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\ntype MouseEventNames = Extract<\n keyof DocumentEventMap,\n `mouse${string}` | `pointer${string}` | `touch${string}` | 'click'\n>;\n\nexport default function useMouseEventAway<\n T extends HTMLElement,\n E extends MouseEventNames,\n>(eventName: E, callback: (e: DocumentEventMap[E]) => void) {\n const ref = useRef<T | null>(null);\n const callbackRef = useRef(callback);\n callbackRef.current = callback;\n\n useEffect(() => {\n function clickAwayHandler(e: DocumentEventMap[E]) {\n if (!(e.target instanceof Node)) {\n return;\n }\n\n if (ref.current && !ref.current.contains(e.target)) {\n callbackRef.current(e);\n }\n }\n\n document.addEventListener(eventName, clickAwayHandler, true);\n\n return () => {\n document.removeEventListener(eventName, clickAwayHandler, true);\n };\n }, [eventName]);\n\n return ref;\n}\n"],"names":["useMouseEventAway","eventName","callback","ref","useRef","callbackRef","current","useEffect","clickAwayHandler","e","target","Node","contains","document","addEventListener","removeEventListener"],"mappings":";;AAOe,SAASA,iBAAiBA,CAGvCC,SAAY,EAAEC,QAA0C,EAAE;AAC1D,EAAA,IAAMC,GAAG,GAAGC,MAAM,CAAW,IAAI,CAAC;AAClC,EAAA,IAAMC,WAAW,GAAGD,MAAM,CAACF,QAAQ,CAAC;EACpCG,WAAW,CAACC,OAAO,GAAGJ,QAAQ;AAE9BK,EAAAA,SAAS,CAAC,YAAM;IACd,SAASC,gBAAgBA,CAACC,CAAsB,EAAE;AAChD,MAAA,IAAI,EAAEA,CAAC,CAACC,MAAM,YAAYC,IAAI,CAAC,EAAE;AAC/B,QAAA;AACF;AAEA,MAAA,IAAIR,GAAG,CAACG,OAAO,IAAI,CAACH,GAAG,CAACG,OAAO,CAACM,QAAQ,CAACH,CAAC,CAACC,MAAM,CAAC,EAAE;AAClDL,QAAAA,WAAW,CAACC,OAAO,CAACG,CAAC,CAAC;AACxB;AACF;IAEAI,QAAQ,CAACC,gBAAgB,CAACb,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC;AAE5D,IAAA,OAAO,YAAM;MACXK,QAAQ,CAACE,mBAAmB,CAACd,SAAS,EAAEO,gBAAgB,EAAE,IAAI,CAAC;KAChE;AACH,GAAC,EAAE,CAACP,SAAS,CAAC,CAAC;AAEf,EAAA,OAAOE,GAAG;AACZ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remember-web/primitive",
3
- "version": "0.3.7",
3
+ "version": "0.4.0",
4
4
  "description": "Remember Web Primitive Components",
5
5
  "homepage": "https://dramancompany.github.io/remember-web-packages/",
6
6
  "author": "Remember",
@@ -53,15 +53,13 @@
53
53
  "@babel/preset-react": "^7.24.1",
54
54
  "@babel/preset-typescript": "^7.24.1",
55
55
  "@rollup/plugin-babel": "^6.0.4",
56
- "@rollup/plugin-commonjs": "^25.0.7",
57
- "@rollup/plugin-node-resolve": "^15.2.3",
58
- "@storybook/client-api": "^7.6.17",
59
- "@storybook/react": "^7.6.17",
56
+ "@rollup/plugin-commonjs": "^28.0.6",
57
+ "@rollup/plugin-node-resolve": "^16.0.1",
60
58
  "@types/react": "^18.2.77",
61
59
  "@types/react-dom": "^18.2.25",
62
60
  "react": "^18.2.0",
63
61
  "react-dom": "^18.2.0",
64
- "rollup": "^4.14.1",
62
+ "rollup": "^4.44.1",
65
63
  "rollup-plugin-peer-deps-external": "^2.2.4",
66
64
  "rollup-plugin-preserve-directives": "^0.4.0",
67
65
  "rollup-plugin-typescript2": "^0.36.0",
@@ -1,5 +1,5 @@
1
1
  import { bg200, contents999, roleBlue } from '@remember-web/mixin';
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
3
 
4
4
  import { avatarSize } from '@/Avatars/Avatar/styles';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/react-vite';
2
2
  import styled from 'styled-components';
3
3
 
4
4
  import { Badge } from '@/Badge/Badge';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { createElement } from 'react';
3
3
 
4
4
  import {
@@ -6,28 +6,32 @@ import type { ButtonSize, ButtonVariant } from './types';
6
6
 
7
7
  export const BUTTON_SIZES = {
8
8
  small: {
9
- typography: 'Caption1',
9
+ typography: 'UIBody3',
10
10
  height: '32px',
11
11
  minWidth: '68px',
12
- padding: '0 16px',
12
+ padding: '0 12px',
13
+ radius: '6px',
13
14
  },
14
15
  medium: {
15
- typography: 'UIBody3',
16
- height: '36px',
16
+ typography: 'UIBody2',
17
+ height: '38px',
17
18
  minWidth: '78px',
18
- padding: '0 20px',
19
+ padding: '0 12px',
20
+ radius: '6px',
19
21
  },
20
22
  large: {
21
23
  typography: 'UIBody2',
22
24
  height: '44px',
23
25
  minWidth: '108px',
24
- padding: '0 20px',
26
+ padding: '0 16px',
27
+ radius: '6px',
25
28
  },
26
29
  xLarge: {
27
- typography: 'UIBody2',
30
+ typography: 'UIBody1',
28
31
  height: '52px',
29
32
  minWidth: '116px',
30
33
  padding: '0 24px',
34
+ radius: '8px',
31
35
  },
32
36
  } as const satisfies Record<ButtonSize, unknown>;
33
37
 
@@ -41,7 +41,7 @@ export const StyledButton = styled.button<ButtonStyleProps>(
41
41
  min-width: ${BUTTON_SIZES[$size].minWidth};
42
42
  height: ${BUTTON_SIZES[$size].height};
43
43
  padding: ${BUTTON_SIZES[$size].padding};
44
- border-radius: 4px;
44
+ border-radius: ${BUTTON_SIZES[$size].radius};
45
45
 
46
46
  color: ${
47
47
  (props.$variant.startsWith('outline') ? $color : null) ??
@@ -3,7 +3,7 @@ import {
3
3
  iconNames,
4
4
  isIconName,
5
5
  } from '@/stories/util';
6
- import type { Meta, StoryObj } from '@storybook/react';
6
+ import type { Meta, StoryObj } from '@storybook/react-vite';
7
7
  import { Fragment, createElement } from 'react';
8
8
 
9
9
  import { Typography } from '@/Common';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import {Flex} from '../Flex';
4
4
  import { Divider } from './index';
@@ -1,6 +1,6 @@
1
1
  import { Skeleton } from '@/Common/Skeleton';
2
2
  import { divider } from '@remember-web/mixin';
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
 
5
5
 
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { divider } from '@remember-web/mixin';
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
3
 
4
4
  import { Spinner } from './index';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import type { TypographyStyle } from '@remember-web/mixin';
2
2
  import { TYPOGRAPHY_STYLES } from '@remember-web/mixin';
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { renderToStaticMarkup } from 'react-dom/server';
5
5
 
6
6
  import {
@@ -1,5 +1,5 @@
1
- import { useArgs } from '@storybook/client-api';
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { useArgs } from 'storybook/preview-api';
3
3
 
4
4
  import { Checkbox } from './Checkbox';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import { useState } from 'react';
4
4
  import { Radio } from './Radio';
@@ -1,5 +1,5 @@
1
- import { useArgs } from '@storybook/client-api';
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { useArgs } from 'storybook/preview-api';
3
3
 
4
4
  import { Switch } from '.';
5
5
 
@@ -1,5 +1,5 @@
1
- import { useArgs } from '@storybook/client-api';
2
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { useArgs } from 'storybook/preview-api';
3
3
 
4
4
  import { Toggle } from './Toggle';
5
5
 
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
2
  /* eslint-disable no-console */
3
- import type { Meta, StoryObj } from '@storybook/react';
3
+ import type { Meta, StoryObj } from '@storybook/react-vite';
4
4
  import { useRef, useState } from 'react';
5
5
 
6
6
  import { Flex } from '@/Common';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-console */
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
3
 
4
4
  import { Flex } from '@/Common';
5
5
  import Popover from '@/Floating/Popover/index';
@@ -1,5 +1,5 @@
1
1
  import { IconAlarm } from '@remember-web/icon';
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
3
 
4
4
  import { Button } from '@/Buttons';
5
5
  import { Flex } from '@/Common';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { useState } from 'react';
3
3
 
4
4
  import type { DesignedSelectProps, NativeSelectProps } from './types';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { createElement } from 'react';
3
3
 
4
4
  import {
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import { Flex } from '@/Common';
4
4
  import { Select, TextInput } from '@/Inputs';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import { RememberLogo } from './index';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import { RememberMobileLogo } from '.';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import { RememberServiceLogo } from '.';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
 
3
3
  import { RememberSquareLogo } from '.';
4
4
 
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-console */
2
- import type { Meta, StoryObj } from '@storybook/react';
2
+ import type { Meta, StoryObj } from '@storybook/react-vite';
3
3
 
4
4
  import { Button } from '@/Buttons';
5
5
  import { Flex } from '@/Common';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { useState } from 'react';
3
3
 
4
4
  import { CompactPagination } from '.';
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { useState } from 'react';
3
3
 
4
4
  import { Pagination } from '.';