@adobe-commerce/elsie 1.0.0-alpha5 → 1.0.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 (225) hide show
  1. package/.elsie.js +9 -0
  2. package/.eslintrc.js +9 -0
  3. package/__mocks__/svg.js +9 -0
  4. package/bin/lib/validate-typeof.js +9 -0
  5. package/bin/lib/write-file.js +9 -0
  6. package/bin/lib/write-parent-index.js +9 -0
  7. package/config/eslint.js +9 -0
  8. package/config/jest.js +9 -0
  9. package/config/prettier.js +9 -0
  10. package/config/setEnvVars.js +9 -0
  11. package/config/storybook/addon.js +9 -0
  12. package/config/storybook/components/FileTree/FileTree.jsx +9 -0
  13. package/config/storybook/components/FileTree/index.js +9 -0
  14. package/config/storybook/components/Flex/Flex.jsx +9 -0
  15. package/config/storybook/components/Flex/Flex.module.css +9 -0
  16. package/config/storybook/components/Flex/index.js +9 -0
  17. package/config/storybook/components/OptionsTable/OptionsTable.jsx +9 -0
  18. package/config/storybook/components/OptionsTable/OptionsTable.module.css +9 -0
  19. package/config/storybook/components/OptionsTable/index.js +9 -0
  20. package/config/storybook/components/Panel/Panel.module.css +9 -0
  21. package/config/storybook/components/Panel/Panel.tsx +9 -0
  22. package/config/storybook/components/Panel/index.ts +9 -0
  23. package/config/storybook/components/Screenshot/Screenshot.jsx +9 -0
  24. package/config/storybook/components/Screenshot/Screenshot.module.css +9 -0
  25. package/config/storybook/components/Screenshot/index.js +9 -0
  26. package/config/storybook/components/Steps/Steps.jsx +9 -0
  27. package/config/storybook/components/Steps/Steps.module.css +9 -0
  28. package/config/storybook/components/Steps/index.js +9 -0
  29. package/config/storybook/components/StoryWrapper/StoryWrapper.jsx +9 -0
  30. package/config/storybook/components/StoryWrapper/StoryWrapper.module.css +9 -0
  31. package/config/storybook/components/StoryWrapper/index.js +9 -0
  32. package/config/storybook/components/Summary/Summary.jsx +9 -0
  33. package/config/storybook/components/Summary/Summary.module.css +9 -0
  34. package/config/storybook/components/Summary/index.js +9 -0
  35. package/config/storybook/components/Variants/Variants.js +9 -0
  36. package/config/storybook/components/Variants/docs.css +9 -0
  37. package/config/storybook/components/Variants/index.js +9 -0
  38. package/config/storybook/components/video/index.jsx +9 -0
  39. package/config/storybook/manager.js +9 -0
  40. package/config/storybook/preview.jsx +9 -0
  41. package/config/storybook/theming/fonts.css +9 -0
  42. package/config/storybook/theming/manager.css +9 -0
  43. package/config/storybook/theming/preview.css +9 -0
  44. package/config/storybook/theming/theme.js +9 -0
  45. package/config/vite.mjs +9 -0
  46. package/package.json +1 -1
  47. package/src/components/Accordion/Accordion.css +10 -1
  48. package/src/components/Accordion/Accordion.stories.tsx +9 -0
  49. package/src/components/Accordion/Accordion.tsx +9 -0
  50. package/src/components/Accordion/index.ts +9 -0
  51. package/src/components/ActionButton/ActionButton.css +9 -0
  52. package/src/components/ActionButton/ActionButton.stories.tsx +9 -0
  53. package/src/components/ActionButton/ActionButton.tsx +9 -0
  54. package/src/components/ActionButton/index.ts +9 -0
  55. package/src/components/ActionButtonGroup/ActionButtonGroup.css +9 -0
  56. package/src/components/ActionButtonGroup/ActionButtonGroup.stories.tsx +9 -0
  57. package/src/components/ActionButtonGroup/ActionButtonGroup.tsx +9 -0
  58. package/src/components/ActionButtonGroup/index.ts +9 -0
  59. package/src/components/AlertBanner/AlertBanner.css +9 -0
  60. package/src/components/AlertBanner/AlertBanner.stories.tsx +9 -0
  61. package/src/components/AlertBanner/AlertBanner.tsx +9 -0
  62. package/src/components/AlertBanner/index.ts +9 -0
  63. package/src/components/Breadcrumbs/Breadcrumbs.css +9 -0
  64. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +9 -0
  65. package/src/components/Breadcrumbs/Breadcrumbs.tsx +9 -0
  66. package/src/components/Breadcrumbs/index.ts +9 -0
  67. package/src/components/Button/Button.css +9 -0
  68. package/src/components/Button/Button.stories.tsx +9 -0
  69. package/src/components/Button/Button.tsx +9 -0
  70. package/src/components/Button/index.ts +9 -0
  71. package/src/components/Card/Card.css +9 -0
  72. package/src/components/Card/Card.stories.tsx +9 -0
  73. package/src/components/Card/Card.tsx +9 -0
  74. package/src/components/Card/index.ts +9 -0
  75. package/src/components/CartItem/CartItem.css +40 -5
  76. package/src/components/CartItem/CartItem.stories.tsx +84 -44
  77. package/src/components/CartItem/CartItem.tsx +343 -320
  78. package/src/components/CartItem/CartItemSkeleton.tsx +9 -0
  79. package/src/components/CartItem/index.ts +9 -0
  80. package/src/components/CartList/CartList.css +9 -0
  81. package/src/components/CartList/CartList.stories.tsx +9 -0
  82. package/src/components/CartList/CartList.tsx +9 -0
  83. package/src/components/CartList/index.ts +9 -0
  84. package/src/components/Checkbox/Checkbox.css +9 -0
  85. package/src/components/Checkbox/Checkbox.stories.tsx +9 -0
  86. package/src/components/Checkbox/Checkbox.tsx +9 -0
  87. package/src/components/Checkbox/index.ts +9 -0
  88. package/src/components/ColorSwatch/ColorSwatch.css +9 -0
  89. package/src/components/ColorSwatch/ColorSwatch.stories.tsx +9 -0
  90. package/src/components/ColorSwatch/ColorSwatch.tsx +9 -0
  91. package/src/components/ColorSwatch/index.ts +9 -0
  92. package/src/components/ContentGrid/ContentGrid.css +3 -11
  93. package/src/components/ContentGrid/ContentGrid.stories.tsx +3 -11
  94. package/src/components/ContentGrid/ContentGrid.tsx +3 -11
  95. package/src/components/ContentGrid/index.ts +3 -11
  96. package/src/components/Divider/Divider.css +9 -0
  97. package/src/components/Divider/Divider.stories.tsx +9 -0
  98. package/src/components/Divider/Divider.tsx +9 -0
  99. package/src/components/Divider/index.ts +9 -0
  100. package/src/components/Field/Field.css +9 -0
  101. package/src/components/Field/Field.stories.tsx +9 -0
  102. package/src/components/Field/Field.tsx +9 -0
  103. package/src/components/Field/index.ts +9 -0
  104. package/src/components/Header/Header.css +9 -0
  105. package/src/components/Header/Header.stories.tsx +52 -0
  106. package/src/components/Header/Header.tsx +31 -3
  107. package/src/components/Header/index.ts +9 -0
  108. package/src/components/Icon/Icon.css +9 -0
  109. package/src/components/Icon/Icon.stories.helpers.jsx +9 -0
  110. package/src/components/Icon/Icon.stories.tsx +9 -0
  111. package/src/components/Icon/Icon.tsx +9 -0
  112. package/src/components/Icon/index.ts +9 -0
  113. package/src/components/IllustratedMessage/IllustratedMessage.css +9 -0
  114. package/src/components/IllustratedMessage/IllustratedMessage.stories.tsx +9 -0
  115. package/src/components/IllustratedMessage/IllustratedMessage.tsx +9 -0
  116. package/src/components/IllustratedMessage/index.ts +9 -0
  117. package/src/components/Image/Image.css +9 -0
  118. package/src/components/Image/Image.stories.tsx +9 -0
  119. package/src/components/Image/Image.tsx +9 -0
  120. package/src/components/Image/index.ts +9 -0
  121. package/src/components/ImageSwatch/ImageSwatch.css +9 -0
  122. package/src/components/ImageSwatch/ImageSwatch.stories.tsx +58 -0
  123. package/src/components/ImageSwatch/ImageSwatch.tsx +22 -10
  124. package/src/components/ImageSwatch/index.ts +9 -0
  125. package/src/components/InLineAlert/InLineAlert.css +9 -0
  126. package/src/components/InLineAlert/InLineAlert.stories.tsx +9 -0
  127. package/src/components/InLineAlert/InLineAlert.tsx +9 -0
  128. package/src/components/InLineAlert/index.ts +9 -0
  129. package/src/components/Incrementer/Incrementer.css +9 -0
  130. package/src/components/Incrementer/Incrementer.stories.tsx +9 -0
  131. package/src/components/Incrementer/Incrementer.tsx +9 -0
  132. package/src/components/Incrementer/index.ts +9 -0
  133. package/src/components/Input/Input.css +9 -0
  134. package/src/components/Input/Input.stories.tsx +9 -0
  135. package/src/components/Input/Input.tsx +9 -0
  136. package/src/components/Input/index.ts +9 -0
  137. package/src/components/InputDate/InputDate.css +9 -0
  138. package/src/components/InputDate/InputDate.stories.tsx +9 -0
  139. package/src/components/InputDate/InputDate.tsx +9 -0
  140. package/src/components/InputDate/index.ts +9 -0
  141. package/src/components/InputPassword/InputPassword.css +9 -0
  142. package/src/components/InputPassword/InputPassword.stories.tsx +9 -0
  143. package/src/components/InputPassword/InputPassword.tsx +9 -0
  144. package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.css +9 -0
  145. package/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.tsx +9 -0
  146. package/src/components/InputPassword/PasswordStatusIndicator/index.ts +9 -0
  147. package/src/components/InputPassword/index.ts +9 -0
  148. package/src/components/Modal/Modal.css +8 -13
  149. package/src/components/Modal/Modal.stories.tsx +8 -13
  150. package/src/components/Modal/Modal.tsx +8 -13
  151. package/src/components/Modal/index.ts +8 -13
  152. package/src/components/Pagination/Pagination.css +9 -0
  153. package/src/components/Pagination/Pagination.stories.tsx +9 -0
  154. package/src/components/Pagination/Pagination.tsx +9 -0
  155. package/src/components/Pagination/index.ts +9 -0
  156. package/src/components/Picker/Picker.css +9 -0
  157. package/src/components/Picker/Picker.stories.tsx +9 -0
  158. package/src/components/Picker/Picker.tsx +9 -0
  159. package/src/components/Picker/index.ts +9 -0
  160. package/src/components/Price/Price.css +9 -0
  161. package/src/components/Price/Price.stories.tsx +9 -0
  162. package/src/components/Price/Price.tsx +9 -0
  163. package/src/components/Price/index.ts +9 -0
  164. package/src/components/PriceRange/PriceRange.css +9 -0
  165. package/src/components/PriceRange/PriceRange.stories.tsx +9 -0
  166. package/src/components/PriceRange/PriceRange.tsx +9 -0
  167. package/src/components/PriceRange/index.ts +9 -0
  168. package/src/components/ProgressSpinner/ProgressSpinner.css +9 -0
  169. package/src/components/ProgressSpinner/ProgressSpinner.stories.tsx +9 -0
  170. package/src/components/ProgressSpinner/ProgressSpinner.tsx +9 -0
  171. package/src/components/ProgressSpinner/index.ts +9 -0
  172. package/src/components/RadioButton/RadioButton.css +9 -0
  173. package/src/components/RadioButton/RadioButton.stories.tsx +9 -0
  174. package/src/components/RadioButton/RadioButton.tsx +9 -0
  175. package/src/components/RadioButton/index.ts +9 -0
  176. package/src/components/Skeleton/Skeleton.css +9 -0
  177. package/src/components/Skeleton/Skeleton.stories.tsx +9 -0
  178. package/src/components/Skeleton/Skeleton.tsx +9 -0
  179. package/src/components/Skeleton/index.ts +9 -0
  180. package/src/components/Tag/Tag.css +9 -0
  181. package/src/components/Tag/Tag.stories.tsx +9 -0
  182. package/src/components/Tag/Tag.tsx +9 -0
  183. package/src/components/Tag/index.ts +9 -0
  184. package/src/components/TextArea/TextArea.css +9 -0
  185. package/src/components/TextArea/TextArea.stories.tsx +9 -0
  186. package/src/components/TextArea/TextArea.tsx +9 -0
  187. package/src/components/TextArea/index.ts +9 -0
  188. package/src/components/TextSwatch/TextSwatch.css +9 -0
  189. package/src/components/TextSwatch/TextSwatch.stories.tsx +9 -0
  190. package/src/components/TextSwatch/TextSwatch.tsx +9 -0
  191. package/src/components/TextSwatch/index.ts +9 -0
  192. package/src/components/ToggleButton/ToggleButton.css +18 -0
  193. package/src/components/ToggleButton/ToggleButton.stories.tsx +47 -3
  194. package/src/components/ToggleButton/ToggleButton.tsx +19 -11
  195. package/src/components/ToggleButton/index.ts +9 -0
  196. package/src/components/UIProvider/UIProvider.css +9 -0
  197. package/src/components/UIProvider/UIProvider.tsx +9 -0
  198. package/src/components/UIProvider/debugger.css +9 -0
  199. package/src/components/UIProvider/index.ts +9 -0
  200. package/src/components/UIProvider/normalize.css +9 -0
  201. package/src/components/index.ts +9 -0
  202. package/src/i18n/index.ts +9 -0
  203. package/src/lib/classes.ts +9 -0
  204. package/src/lib/config.ts +9 -0
  205. package/src/lib/debounce.ts +9 -0
  206. package/src/lib/deepmerge.ts +9 -0
  207. package/src/lib/deviceUtils.ts +9 -0
  208. package/src/lib/form-values.ts +9 -0
  209. package/src/lib/i18n.ts +9 -0
  210. package/src/lib/image-params-keymap.ts +9 -0
  211. package/src/lib/index.ts +9 -0
  212. package/src/lib/initializer.ts +9 -0
  213. package/src/lib/is-number.ts +9 -0
  214. package/src/lib/render.tsx +9 -0
  215. package/src/lib/resolve-image.ts +9 -0
  216. package/src/lib/signals.ts +9 -0
  217. package/src/lib/slot.tsx +9 -0
  218. package/src/lib/tests.tsx +9 -0
  219. package/src/lib/types.ts +9 -0
  220. package/src/lib/vcomponent.tsx +8 -13
  221. package/static/assets/images/index.ts +9 -0
  222. package/storybook-stories.js +9 -0
  223. package/tests/__mocks__/browserMocks.ts +9 -0
  224. package/tests/__mocks__/fileMocks.ts +9 -0
  225. package/types/icons.d.ts +9 -0
package/.elsie.js CHANGED
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  module.exports = {
2
11
  name: 'Base',
3
12
  components: [
package/.eslintrc.js CHANGED
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  const baseConfig = require('./config/eslint');
2
11
 
3
12
  module.exports = {
package/__mocks__/svg.js CHANGED
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '../src/icons';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  module.exports = function validateTypeOf(values, rules) {
2
11
  if (!values || !rules) return null;
3
12
 
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  const path = require('path');
2
11
  const fs = require('fs');
3
12
  const m = require('./log-message');
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  const path = require('path');
2
11
  const fs = require('fs');
3
12
  const m = require('./log-message');
package/config/eslint.js CHANGED
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  module.exports = {
2
11
  env: {
3
12
  browser: true,
package/config/jest.js CHANGED
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  const path = require('path');
2
11
 
3
12
  const { compilerOptions } = require(path.resolve(
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  module.exports = {
2
11
  tabWidth: 2,
3
12
  useTabs: false,
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  // Used in the Price component to avoid using the system locale in tests, which can be different between computers
2
11
  process.env.LOCALE = "en-US";
3
12
 
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  const path = require('path');
2
11
 
3
12
  module.exports = {
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { createContext, memo, useCallback, useContext, useState } from 'react';
2
11
 
3
12
  const ctx = createContext(0);
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/FileTree/FileTree';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import styles from './Flex.module.css';
2
11
 
3
12
  export function Flex({ direction = 'row', itemsPerRow = 2, children }) {
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  :root {
2
11
  --flex-direction: row;
3
12
  --items-per-row: 2;
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/Flex/Flex';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import React from 'react';
2
11
  import styles from './OptionsTable.module.css';
3
12
 
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  .optionsTable {
2
11
  margin-left: -1.25rem;
3
12
  margin-right: -1.25rem;
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/OptionsTable/OptionsTable';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  .panel {
2
11
  box-sizing: border-box;
3
12
  display: flex;
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { FunctionComponent, toChildArray } from 'preact';
2
11
  import { HTMLAttributes } from 'preact/compat';
3
12
  import styles from './Panel.module.css';
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/Panel/Panel';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import styles from './Screenshot.module.css';
2
11
 
3
12
  export function Screenshot({ src, alt }) {
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  .screenshotContainer {
2
11
  margin-bottom: 24px;
3
12
  margin-top: 6px;
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/Screenshot/Screenshot';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { Unstyled } from '@storybook/blocks';
2
11
  import styles from './Steps.module.css';
3
12
 
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  .stepsContainer {
2
11
  counter-reset: step;
3
12
  padding-left: 1.5rem;
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/Steps/Steps';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import styles from './StoryWrapper.module.css';
2
11
 
3
12
  export function StoryWrapper({ direction = 'row', children }) {
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  :root {
2
11
  --flex-direction: row;
3
12
  }
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/StoryWrapper/StoryWrapper';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { Unstyled } from '@storybook/blocks';
2
11
  import styles from './Summary.module.css';
3
12
 
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  div.summary {
2
11
  font-weight: 400;
3
12
  margin: 0 0 1rem 0;
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/Summary/Summary';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { useState } from 'preact/hooks';
2
11
  import { useOf, Story, Source } from '@storybook/blocks';
3
12
  import './docs.css';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  .stories {
2
11
  display: flex;
3
12
  flex-direction: column;
@@ -1 +1,10 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export * from '@adobe-commerce/elsie/config/storybook/components/Variants/Variants';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  export default function Video({ src }) {
2
11
  return (
3
12
  <video
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { addons } from '@storybook/manager-api';
2
11
  import theme from './theming/theme';
3
12
  import './theming/manager.css';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { UIProvider } from '../../src/components';
2
11
  import {
3
12
  DocsContainer,
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  /* Light */
2
11
  @font-face {
3
12
  font-family: 'adobe-clean';
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  @import './fonts.css';
2
11
 
3
12
  .sidebar-item,
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  @import './fonts.css';
2
11
 
3
12
  .sbdocs .sbdocs-content {
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { create } from '@storybook/theming';
2
11
 
3
12
  import logo from './logo.svg';
package/config/vite.mjs CHANGED
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  import { glob } from 'glob';
2
11
  import { createRequire } from 'node:module';
3
12
  import path from 'path';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe-commerce/elsie",
3
- "version": "1.0.0-alpha5",
3
+ "version": "1.0.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Domain Package SDK",
6
6
  "engines": {
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  /* https://cssguidelin.es/#bem-like-naming */
2
11
 
3
12
  .dropin-accordion-section__heading {
@@ -76,4 +85,4 @@
76
85
  /* @media only screen and (min-width: 1366px) { } */
77
86
 
78
87
  /* XXlarge (large laptops and desktops, 1920px and up) */
79
- /* @media only screen and (min-width: 1920px) { } */
88
+ /* @media only screen and (min-width: 1920px) { } */
@@ -1,3 +1,12 @@
1
+ /********************************************************************
2
+ * Copyright 2024 Adobe
3
+ * All Rights Reserved.
4
+ *
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
+ *******************************************************************/
9
+
1
10
  // https://storybook.js.org/docs/7.0/preact/writing-stories/introduction
2
11
  import type { Meta, StoryObj } from '@storybook/preact';
3
12
  import {