jbx 2.9.0 → 2.10.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.
package/dist/index.d.ts CHANGED
@@ -9,6 +9,11 @@ type BoxProps = {
9
9
  };
10
10
  declare function Box({ children, smallText, padding, flex, style }: BoxProps): React.JSX.Element;
11
11
 
12
+ type MoreExperimentsProps = {
13
+ exclude?: string;
14
+ };
15
+ declare function MoreExperiments({ exclude }: MoreExperimentsProps): React.JSX.Element;
16
+
12
17
  declare function Component<T>(className: string, styleSrc?: {}, config?: {
13
18
  element?: string;
14
19
  props?: any;
@@ -145,4 +150,4 @@ declare function Bullet({ value }: {
145
150
  value: number;
146
151
  }): React.JSX.Element;
147
152
 
148
- export { A, Box, Bullet, Button, Checkbox, CheckboxHidden, CodeSnippet, CodeTextarea, Component, Container, Dropzone, HR, HeaderH1, HeaderH2, HeaderH3, HeaderH4, Inline, Input, Li, MainHeader, Range, SmallText, Space, Stack, Tab, Tabs, Text, Ul };
153
+ export { A, Box, Bullet, Button, Checkbox, CheckboxHidden, CodeSnippet, CodeTextarea, Component, Container, Dropzone, HR, HeaderH1, HeaderH2, HeaderH3, HeaderH4, Inline, Input, Li, MainHeader, MoreExperiments, Range, SmallText, Space, Stack, Tab, Tabs, Text, Ul };
package/dist/index.js CHANGED
@@ -2627,6 +2627,60 @@ function Box({ children, smallText, padding, flex, style }) {
2627
2627
  }, children);
2628
2628
  }
2629
2629
 
2630
+ const PROJECT_DATA = [
2631
+ {
2632
+ name: 'PINTR',
2633
+ description: 'Tool that turns your images into plotter-like line drawings',
2634
+ url: 'https://javier.xyz/pintr'
2635
+ },
2636
+ {
2637
+ name: 'Visual Center',
2638
+ description: 'Tool that help you visually center objects in a container',
2639
+ url: 'https://javier.xyz/visual-center'
2640
+ },
2641
+ {
2642
+ name: 'Brutalita',
2643
+ description: 'Grid based font editor and font. Create fonts in the browser and export OpenType files',
2644
+ url: 'https://brutalita.com'
2645
+ },
2646
+ {
2647
+ name: 'Morphin',
2648
+ description: 'Create animated CSS transitions. Add sprites and get the code ready to paste in your site',
2649
+ url: 'https://javier.xyz/morphin'
2650
+ },
2651
+ {
2652
+ name: 'Droste Creator',
2653
+ description: 'Create recursive images with the droste effect',
2654
+ url: 'https://javier.xyz/droste-creator'
2655
+ },
2656
+ {
2657
+ name: 'Sombras.app',
2658
+ description: 'Create art with shadows. Draw shadows and get 3D objects that project them.',
2659
+ url: 'https://sombras.app'
2660
+ },
2661
+ {
2662
+ name: 'Cohesive Colors',
2663
+ description: 'Tool that can help you to create cohesive color palettes',
2664
+ url: 'https://javier.xyz/cohesive-colors'
2665
+ }
2666
+ ];
2667
+ const seed = 0;
2668
+ const maxItems = 5;
2669
+ function MoreExperiments({ exclude }) {
2670
+ const projects = exclude ? PROJECT_DATA.filter((project)=>!project.url.includes(exclude)) : PROJECT_DATA;
2671
+ const items = new Array(Math.min(maxItems, projects.length)).fill('').map((_0, idx)=>{
2672
+ const project = projects[(seed + idx) % projects.length];
2673
+ return /*#__PURE__*/ React.createElement(Li, {
2674
+ key: project.url
2675
+ }, /*#__PURE__*/ React.createElement(A, {
2676
+ href: project.url
2677
+ }, project.name), `, `, project.description, ".");
2678
+ });
2679
+ return /*#__PURE__*/ React.createElement(reactExports.Fragment, null, /*#__PURE__*/ React.createElement(Text, null, "More experiments"), /*#__PURE__*/ React.createElement(Space, {
2680
+ h: 1
2681
+ }), /*#__PURE__*/ React.createElement(Ul, null, items));
2682
+ }
2683
+
2630
2684
  function Component(className, styleSrc = {}, config = {}) {
2631
2685
  const { element = `div`, props: otherProps } = config;
2632
2686
  return function MakeComponent({ children, style = {}, ...props }) {
@@ -2789,4 +2843,4 @@ function Bullet({ value }) {
2789
2843
  }, value));
2790
2844
  }
2791
2845
 
2792
- export { A, Box, Bullet, Button, Checkbox, CheckboxHidden, CodeSnippet, CodeTextarea, Component, Container, Dropzone, HR, HeaderH1, HeaderH2, HeaderH3, HeaderH4, Inline, Input, Li, MainHeader, Range, SmallText, Space, Stack, Tab, Tabs, Text, Ul };
2846
+ export { A, Box, Bullet, Button, Checkbox, CheckboxHidden, CodeSnippet, CodeTextarea, Component, Container, Dropzone, HR, HeaderH1, HeaderH2, HeaderH3, HeaderH4, Inline, Input, Li, MainHeader, MoreExperiments, Range, SmallText, Space, Stack, Tab, Tabs, Text, Ul };
package/dist/main.css CHANGED
@@ -356,8 +356,8 @@ a.jbx-a:hover::before,
356
356
  height: calc(var(--size) * 1.25);
357
357
  width: calc(var(--size) * 1.25);
358
358
  border-radius: 100%;
359
- top: -4px;
360
- margin-right: 4px;
359
+ top: -2px;
360
+ margin-right: 2px;
361
361
  }
362
362
 
363
363
  .jbx-hr {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jbx",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "author": "hi@javier.xyz",
5
5
  "license": "Unlicensed",
6
6
  "main": "./dist/index.js",