mirror of
https://github.com/jambonz/next-static-site.git
synced 2026-05-06 08:36:58 +00:00
feat: update jambonz-ui:0.0.20 (#53)
* feat: update jambonz-ui:0.0.20 * feat: update jambonz-ui:0.0.20 * feat: update @jambonz/ui-kit version * fixes for new ui-kit * update references to jambonz-ui --------- Co-authored-by: Quan HL <quanluuhoang8@gmail.com> Co-authored-by: Dave Horton <daveh@beachdognet.com>
This commit is contained in:
@@ -71,7 +71,7 @@ All of these accept the same type of props with the exception of `M`, `MS` and `
|
|||||||
You can import available components from the package into your jambonz app JS.
|
You can import available components from the package into your jambonz app JS.
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import { ButtonGroup, Button, Icon } from "jambonz-ui";
|
import { ButtonGroup, Button, Icon } from "@jambonz/ui-kit";
|
||||||
|
|
||||||
function MyComponent() {
|
function MyComponent() {
|
||||||
return (
|
return (
|
||||||
@@ -101,7 +101,7 @@ Using the `Link` prop with [react-router-dom](https://reactrouter.com/docs/en/v6
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { Button } from "jambonz-ui";
|
import { Button } from "@jambonz/ui-kit";
|
||||||
|
|
||||||
function MyComponent() {
|
function MyComponent() {
|
||||||
return (
|
return (
|
||||||
@@ -116,7 +116,7 @@ Using the `Link` prop with [next/link](https://nextjs.org/docs/api-reference/nex
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Button } from "jambonz-ui";
|
import { Button } from "@jambonz/ui-kit";
|
||||||
|
|
||||||
function MyComponent() {
|
function MyComponent() {
|
||||||
return (
|
return (
|
||||||
@@ -173,7 +173,7 @@ Then we can use these icons both `inline` and with the `Icon` component for styl
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import { Icons } from "./my-icons";
|
import { Icons } from "./my-icons";
|
||||||
import { Icon } from "jambonz-ui";
|
import { Icon } from "@jambonz/ui-kit";
|
||||||
|
|
||||||
function MyComponent() {
|
function MyComponent() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ script in the `package.json` file. We are also opting to ignore the `fonts` dire
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "rm -rf public/fonts && cp -R ./node_modules/jambonz-ui/public/fonts ./public/fonts"
|
"postinstall": "rm -rf public/fonts && cp -R ./node_modules/@jambonz/ui-kit/public/fonts ./public/fonts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -63,7 +63,7 @@ Example of dev server config:
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
// ...
|
// ...
|
||||||
devServer: {
|
devServer: {
|
||||||
static: [path.resolve(__dirname, 'node_modules/jambonz-ui/public')],
|
static: [path.resolve(__dirname, 'node_modules/@jambonz/ui-kit/public')],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
@@ -77,7 +77,7 @@ module.exports = {
|
|||||||
new CopyWebpackPlugin({
|
new CopyWebpackPlugin({
|
||||||
patterns: [
|
patterns: [
|
||||||
{
|
{
|
||||||
from: path.resolve(__dirname, 'node_modules/jambonz-ui/public'),
|
from: path.resolve(__dirname, 'node_modules/@jambonz/ui-kit/public'),
|
||||||
// If you would like to omit the CSS/JS and only copy fonts
|
// If you would like to omit the CSS/JS and only copy fonts
|
||||||
globOptions: {
|
globOptions: {
|
||||||
ignore: ['**/css/**', '**/js/**'],
|
ignore: ['**/css/**', '**/js/**'],
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ View the [storybook](https://jambonz-ui.vercel.app/).
|
|||||||
Installing the package is easy. You can use any typical package manager for frontend stacks.
|
Installing the package is easy. You can use any typical package manager for frontend stacks.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
npm install jambonz-ui # or yarn add jambonz-ui
|
npm install @jambonz/ui-kit # or yarn add @jambonz/ui-kit
|
||||||
```
|
```
|
||||||
|
|
||||||
##### General usage
|
##### General usage
|
||||||
|
|||||||
@@ -77,10 +77,10 @@ already using SASS for your jambonz app the recommendation would be to just load
|
|||||||
```scss
|
```scss
|
||||||
// This loads the entire SASS lib
|
// This loads the entire SASS lib
|
||||||
// You should use this in your root SASS entry point
|
// You should use this in your root SASS entry point
|
||||||
@use 'jambonz-ui/src/styles/index';
|
@use '@jambonz/ui-kit/src/styles/index';
|
||||||
|
|
||||||
// In your local SASS modules you can use the vars and mixins from the UI library
|
// In your local SASS modules you can use the vars and mixins from the UI library
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/styles/vars' as ui-vars;
|
||||||
|
|
||||||
.some-thing {
|
.some-thing {
|
||||||
color: ui-vars.$jambonz;
|
color: ui-vars.$jambonz;
|
||||||
|
|||||||
Generated
+20
-20
@@ -10,7 +10,7 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jambonz-ui": "^0.0.17",
|
"@jambonz/ui-kit": "^0.0.21",
|
||||||
"nanoid": "^3.1.22",
|
"nanoid": "^3.1.22",
|
||||||
"next": "^12.1.4",
|
"next": "^12.1.4",
|
||||||
"next-plugin-preact": "^3.0.6",
|
"next-plugin-preact": "^3.0.6",
|
||||||
@@ -392,6 +392,19 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "BSD-3-Clause"
|
"license": "BSD-3-Clause"
|
||||||
},
|
},
|
||||||
|
"node_modules/@jambonz/ui-kit": {
|
||||||
|
"version": "0.0.21",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jambonz/ui-kit/-/ui-kit-0.0.21.tgz",
|
||||||
|
"integrity": "sha512-tv0sPhzxS/ctJbgUxLVNY+7IjJb3OAhqrdYpmeW3lmEHi7+sHxpO2oMjaVTPFCN4vYh+QzyzT4eLQjpEUDd6sA==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 14"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=17.0.2",
|
||||||
|
"react-dom": ">=17.0.2",
|
||||||
|
"react-feather": ">=2.0.9"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@jridgewell/gen-mapping": {
|
"node_modules/@jridgewell/gen-mapping": {
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
||||||
@@ -3888,19 +3901,6 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/jambonz-ui": {
|
|
||||||
"version": "0.0.17",
|
|
||||||
"resolved": "https://registry.npmjs.org/jambonz-ui/-/jambonz-ui-0.0.17.tgz",
|
|
||||||
"integrity": "sha512-zu3gDhqKMFEhwyICppgLlA9EMpps9VmGX/O6QcRdK5joluejlbFggsfgE6rnIW7V1NaKsuGlm3rLDbfTnOByww==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 14"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": ">=17.0.2",
|
|
||||||
"react-dom": ">=17.0.2",
|
|
||||||
"react-feather": ">=2.0.9"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/jest-worker": {
|
"node_modules/jest-worker": {
|
||||||
"version": "27.5.1",
|
"version": "27.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
|
||||||
@@ -7323,6 +7323,12 @@
|
|||||||
"version": "1.2.1",
|
"version": "1.2.1",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@jambonz/ui-kit": {
|
||||||
|
"version": "0.0.21",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jambonz/ui-kit/-/ui-kit-0.0.21.tgz",
|
||||||
|
"integrity": "sha512-tv0sPhzxS/ctJbgUxLVNY+7IjJb3OAhqrdYpmeW3lmEHi7+sHxpO2oMjaVTPFCN4vYh+QzyzT4eLQjpEUDd6sA==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"@jridgewell/gen-mapping": {
|
"@jridgewell/gen-mapping": {
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
||||||
@@ -9586,12 +9592,6 @@
|
|||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"jambonz-ui": {
|
|
||||||
"version": "0.0.17",
|
|
||||||
"resolved": "https://registry.npmjs.org/jambonz-ui/-/jambonz-ui-0.0.17.tgz",
|
|
||||||
"integrity": "sha512-zu3gDhqKMFEhwyICppgLlA9EMpps9VmGX/O6QcRdK5joluejlbFggsfgE6rnIW7V1NaKsuGlm3rLDbfTnOByww==",
|
|
||||||
"requires": {}
|
|
||||||
},
|
|
||||||
"jest-worker": {
|
"jest-worker": {
|
||||||
"version": "27.5.1",
|
"version": "27.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
|
||||||
|
|||||||
+2
-2
@@ -5,7 +5,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"postinstall": "rm -rf public/fonts && cp -R ./node_modules/jambonz-ui/public/fonts ./public/fonts",
|
"postinstall": "rm -rf public/fonts && cp -R ./node_modules/@jambonz/ui-kit/public/fonts ./public/fonts",
|
||||||
"dev": "next",
|
"dev": "next",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jambonz-ui": "^0.0.17",
|
"@jambonz/ui-kit": "^0.0.21",
|
||||||
"nanoid": "^3.1.22",
|
"nanoid": "^3.1.22",
|
||||||
"next": "^12.1.4",
|
"next": "^12.1.4",
|
||||||
"next-plugin-preact": "^3.0.6",
|
"next-plugin-preact": "^3.0.6",
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
|||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { useState, useEffect, useRef } from 'react';
|
import { useState, useEffect, useRef } from 'react';
|
||||||
import { Icon, Button, H4, H3, H2, P, MS, classNames, IconGroup } from 'jambonz-ui';
|
import { Icon, Button, H4, H3, H2, P, MS, classNames, IconGroup } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { getData } from '../src/lib/data';
|
import { getData } from '../src/lib/data';
|
||||||
import { Icons } from '../src/components/icons';
|
import { Icons } from '../src/components/icons';
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { Icon, Button, H2, P } from 'jambonz-ui';
|
import { Icon, Button, H2, P } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { getData } from '../src/lib/data';
|
import { getData } from '../src/lib/data';
|
||||||
import { Icons } from '../src/components/icons';
|
import { Icons } from '../src/components/icons';
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
|||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { Icon, P } from 'jambonz-ui';
|
import { Icon, P } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { getData } from '../src/lib/data';
|
import { getData } from '../src/lib/data';
|
||||||
import { Icons } from '../src/components/icons';
|
import { Icons } from '../src/components/icons';
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { Icon, Button, H3, H2, P, ButtonGroup } from 'jambonz-ui';
|
import { Icon, Button, H3, H2, P, ButtonGroup } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { getData } from '../src/lib/data';
|
import { getData } from '../src/lib/data';
|
||||||
import { Icons } from '../src/components/icons';
|
import { Icons } from '../src/components/icons';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { Button, classNames } from 'jambonz-ui';
|
import { Button, classNames } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { rSlash } from './utils';
|
import { rSlash } from './utils';
|
||||||
import { useActiveNavi } from './hooks';
|
import { useActiveNavi } from './hooks';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Head from 'next/head';
|
|||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { classNames, H1, H2, H3, Button } from 'jambonz-ui';
|
import { classNames, H1, H2, H3, Button } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import Navi from './navi';
|
import Navi from './navi';
|
||||||
import Footer from './footer';
|
import Footer from './footer';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { useRouter } from 'next/router';
|
|||||||
|
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { classNames, Icon } from 'jambonz-ui';
|
import { classNames, Icon } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { Icons } from './icons';
|
import { Icons } from './icons';
|
||||||
import { rSlash } from './utils';
|
import { rSlash } from './utils';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Link from 'next/link';
|
|||||||
|
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Button, Icon, classNames } from 'jambonz-ui';
|
import { Button, Icon, classNames } from '@jambonz/ui-kit';
|
||||||
|
|
||||||
import { Icons } from './icons';
|
import { Icons } from './icons';
|
||||||
import { rSlash } from './utils';
|
import { rSlash } from './utils';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
.foot {
|
.foot {
|
||||||
padding: 96px 0;
|
padding: 96px 0;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
@use 'vars';
|
@use 'vars';
|
||||||
@use 'mixins';
|
@use 'mixins';
|
||||||
|
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
@use 'jambonz-ui/src/styles/mixins' as ui-mixins;
|
@use '@jambonz/ui-kit/src/styles/mixins' as ui-mixins;
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Extend jambonz-ui classes
|
* Extend jambonz-ui classes
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
@use 'jambonz-ui/src/styles/mixins' as ui-mixins;
|
@use '@jambonz/ui-kit/src/styles/mixins' as ui-mixins;
|
||||||
|
|
||||||
.markdown {
|
.markdown {
|
||||||
padding-top: 64px;
|
padding-top: 64px;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
@mixin cta() {
|
@mixin cta() {
|
||||||
margin-top: 96px;
|
margin-top: 96px;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@use 'vars';
|
@use 'vars';
|
||||||
|
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
.navi {
|
.navi {
|
||||||
height: vars.$navi-height;
|
height: vars.$navi-height;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
@use 'jambonz-ui/src/styles/mixins' as ui-mixins;
|
@use '@jambonz/ui-kit/src/styles/mixins' as ui-mixins;
|
||||||
|
|
||||||
.text-layout {
|
.text-layout {
|
||||||
max-width: ui-vars.$width-tablet-2;
|
max-width: ui-vars.$width-tablet-2;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@use 'jambonz-ui/src/styles/index';
|
@use '@jambonz/ui-kit/src/styles/index';
|
||||||
|
|
||||||
@use 'layout';
|
@use 'layout';
|
||||||
@use 'text-layout';
|
@use 'text-layout';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@use '../mixins';
|
@use '../mixins';
|
||||||
|
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* App screenshot
|
* App screenshot
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@use '../mixins';
|
@use '../mixins';
|
||||||
|
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Pricing structure
|
* Pricing structure
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@use '../mixins';
|
@use '../mixins';
|
||||||
|
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Regions
|
* Regions
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@use '../mixins';
|
@use '../mixins';
|
||||||
|
|
||||||
@use 'jambonz-ui/src/styles/vars' as ui-vars;
|
@use '@jambonz/ui-kit/src/styles/vars' as ui-vars;
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Jambonz Facts
|
* Jambonz Facts
|
||||||
|
|||||||
Reference in New Issue
Block a user