@symbo.ls/starter-kit 2.34.4 → 3.3.4

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 (47) hide show
  1. package/.eslintignore +4 -0
  2. package/.eslintrc +12 -2
  3. package/.vscode/settings.json +10 -0
  4. package/package.json +5 -20
  5. package/symbols/app.js +1 -0
  6. package/symbols/components/index.js +0 -0
  7. package/symbols/config.js +11 -0
  8. package/symbols/dependencies.js +2 -0
  9. package/symbols/designSystem/ANIMATION.js +1 -0
  10. package/symbols/designSystem/CASES.js +1 -0
  11. package/symbols/designSystem/CLASS.js +1 -0
  12. package/symbols/designSystem/COLOR.js +4 -0
  13. package/symbols/designSystem/FONT.js +1 -0
  14. package/symbols/designSystem/FONT_FAMILY.js +1 -0
  15. package/symbols/designSystem/GRADIENT.js +1 -0
  16. package/symbols/designSystem/GRID.js +1 -0
  17. package/symbols/designSystem/ICONS.js +1 -0
  18. package/symbols/designSystem/MEDIA.js +1 -0
  19. package/symbols/designSystem/RESET.js +1 -0
  20. package/symbols/designSystem/SHAPE.js +1 -0
  21. package/symbols/designSystem/SPACING.js +5 -0
  22. package/symbols/designSystem/THEME.js +20 -0
  23. package/symbols/designSystem/TIMING.js +1 -0
  24. package/symbols/designSystem/TYPOGRAPHY.js +6 -0
  25. package/symbols/designSystem/index.js +35 -0
  26. package/symbols/envs.js +1 -0
  27. package/symbols/files/index.js +3 -0
  28. package/symbols/functions/index.js +0 -0
  29. package/symbols/index.html +15 -0
  30. package/symbols/index.js +31 -0
  31. package/symbols/methods/index.js +0 -0
  32. package/symbols/pages/index.js +2 -0
  33. package/symbols/sharedLibraries.js +1 -0
  34. package/symbols/snippets/index.js +0 -0
  35. package/symbols/state.js +1 -0
  36. package/symbols.json +7 -2
  37. package/.parcelrc +0 -8
  38. package/example/app.js +0 -20
  39. package/example/components.js +0 -68
  40. package/example/designSystem.js +0 -92
  41. package/example/index.js +0 -16
  42. package/example/pages.js +0 -34
  43. package/index.html +0 -12
  44. package/src/components.js +0 -55
  45. package/src/designSystem.js +0 -92
  46. package/src/index.js +0 -28
  47. package/src/pages.js +0 -12
package/.eslintignore ADDED
@@ -0,0 +1,4 @@
1
+ dist/
2
+ node_modules/
3
+ .parcel-cache/
4
+ .symbols/
package/.eslintrc CHANGED
@@ -1,3 +1,13 @@
1
1
  {
2
- "extends": "standard"
3
- }
2
+ "extends": "standard",
3
+ "parser": "@babel/eslint-parser",
4
+ "parserOptions": {
5
+ "ecmaVersion": "latest",
6
+ "sourceType": "module",
7
+ "requireConfigFile": false
8
+ },
9
+ "rules": {
10
+ "no-unused-vars": "warn",
11
+ "import/no-duplicates": "warn"
12
+ }
13
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint",
3
+ "editor.formatOnSave": false,
4
+ "editor.codeActionsOnSave": {
5
+ "source.fixAll.eslint": "explicit"
6
+ },
7
+ "[javascript]": {
8
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,29 +1,14 @@
1
1
  {
2
2
  "name": "@symbo.ls/starter-kit",
3
- "version": "2.34.4",
3
+ "version": "3.3.4",
4
4
  "description": "Example dev setup to use Symbols",
5
5
  "author": "symbo.ls",
6
6
  "repository": "https://github.com/symbo-ls/starter-kit",
7
7
  "scripts": {
8
- "start": "parcel index.html",
9
- "build": "parcel build index.html"
8
+ "start": "npx smbls start",
9
+ "build": "npx smbls build"
10
10
  },
11
11
  "dependencies": {
12
- "smbls": "^2.34.4"
13
- },
14
- "devDependencies": {
15
- "@babel/core": "^7.28.4",
16
- "@babel/eslint-parser": "^7.28.4",
17
- "@babel/preset-env": "^7.28.3",
18
- "@parcel/babel-preset-env": "^2.16.0",
19
- "@parcel/transformer-inline-string": "^2.16.0",
20
- "@parcel/transformer-raw": "^2.16.0",
21
- "buffer": "^6.0.3",
22
- "eslint": "^9.37.0",
23
- "eslint-config-standard": "^17.1.0",
24
- "eslint-plugin-import": "^2.32.0",
25
- "parcel": "^2.16.0",
26
- "standard": "^17.1.2"
27
- },
28
- "gitHead": "24af4cb709642223c3fa555fa6fb954570c31b6b"
12
+ "smbls": "^3.3.4"
13
+ }
29
14
  }
package/symbols/app.js ADDED
@@ -0,0 +1 @@
1
+ export default {}
File without changes
@@ -0,0 +1,11 @@
1
+ export default {
2
+ useReset: true,
3
+ useVariable: true,
4
+ useFontImport: true,
5
+ useIconSprite: true,
6
+ useSvgSprite: true,
7
+ useDefaultConfig: true,
8
+ useDocumentTheme: true,
9
+ verbose: false,
10
+ globalTheme: 'auto'
11
+ }
@@ -0,0 +1,2 @@
1
+ export default {
2
+ }
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1,4 @@
1
+ export default {
2
+ black: '#000',
3
+ white: '#fff'
4
+ }
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1,5 @@
1
+ export default {
2
+ base: 16,
3
+ ratio: 1.618,
4
+ subSequence: true
5
+ }
@@ -0,0 +1,20 @@
1
+ export default {
2
+ document: {
3
+ '@light': {
4
+ color: 'black',
5
+ background: 'white'
6
+ },
7
+ '@dark': {
8
+ color: 'white',
9
+ background: 'black'
10
+ }
11
+ },
12
+ none: {
13
+ color: 'none',
14
+ background: 'none'
15
+ },
16
+ transparent: {
17
+ color: 'currentColor',
18
+ background: 'transparent'
19
+ }
20
+ }
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1,6 @@
1
+ export default {
2
+ base: 16,
3
+ ratio: 1.25,
4
+ subSequence: true,
5
+ templates: {}
6
+ }
@@ -0,0 +1,35 @@
1
+ import color from './color.js'
2
+ import gradient from './gradient.js'
3
+ import theme from './theme.js'
4
+ import font from './font.js'
5
+ import font_family from './font_family.js'
6
+ import typography from './typography.js'
7
+ import spacing from './spacing.js'
8
+ import timing from './timing.js'
9
+ import class_ from './class.js'
10
+ import grid from './grid.js'
11
+ import icons from './icons.js'
12
+ import shape from './shape.js'
13
+ import reset from './reset.js'
14
+ import animation from './animation.js'
15
+ import media from './media.js'
16
+ import cases from './cases.js'
17
+
18
+ export default {
19
+ color,
20
+ gradient,
21
+ theme,
22
+ font,
23
+ font_family,
24
+ typography,
25
+ spacing,
26
+ timing,
27
+ class: class_,
28
+ grid,
29
+ icons,
30
+ shape,
31
+ reset,
32
+ animation,
33
+ media,
34
+ cases
35
+ }
@@ -0,0 +1 @@
1
+ export default {}
@@ -0,0 +1,3 @@
1
+ export default {
2
+
3
+ }
File without changes
@@ -0,0 +1,15 @@
1
+ <html background="#000">
2
+ <head>
3
+ <title>Symbols App</title>
4
+ <meta
5
+ name="viewport"
6
+ content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
7
+ />
8
+ <meta name="apple-mobile-web-app-capable" content="yes" />
9
+
10
+ <meta charset="UTF-8" />
11
+ </head>
12
+ <body>
13
+ <script type="module" src="./index.js"></script>
14
+ </body>
15
+ </html>
@@ -0,0 +1,31 @@
1
+ import { create } from 'smbls'
2
+
3
+ import app from './app.js'
4
+
5
+ import state from './state.js'
6
+ import dependencies from './dependencies.js'
7
+ import * as components from './components/index.js'
8
+ import * as snippets from './snippets/index.js'
9
+ import pages from './pages/index.js'
10
+ import * as functions from './functions/index.js'
11
+ import * as methods from './methods/index.js'
12
+ import designSystem from './designSystem/index.js'
13
+ import files from './files/index.js'
14
+ import sharedLibraries from './sharedLibraries.js'
15
+ import config from './config.js'
16
+ import envs from './envs.js'
17
+
18
+ create(app, {
19
+ ...config,
20
+ state,
21
+ dependencies,
22
+ components,
23
+ snippets,
24
+ pages,
25
+ functions,
26
+ methods,
27
+ designSystem,
28
+ files,
29
+ sharedLibraries,
30
+ envs
31
+ })
File without changes
@@ -0,0 +1,2 @@
1
+ export default {
2
+ }
@@ -0,0 +1 @@
1
+ export default []
File without changes
@@ -0,0 +1 @@
1
+ export default {}
package/symbols.json CHANGED
@@ -1,3 +1,8 @@
1
1
  {
2
- "key": "projectName.symbo.ls"
3
- }
2
+ "key": "projectName.symbo.ls",
3
+ "branch": "main",
4
+ "version": "1.0.0",
5
+ "dir": "./symbols",
6
+ "bundler": "parcel",
7
+ "packageManager": "npm"
8
+ }
package/.parcelrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "@parcel/config-default",
3
- "transformers": {
4
- "*.woff2": ["@parcel/transformer-raw"],
5
- "*.otf": ["@parcel/transformer-raw"],
6
- "*.svg": ["@parcel/transformer-inline-string"]
7
- }
8
- }
package/example/app.js DELETED
@@ -1,20 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex } from 'smbls'
4
-
5
- export const App = {
6
- extend: Flex,
7
-
8
- props: {
9
- theme: 'document',
10
- flow: 'column',
11
- height: '100vh',
12
- align: 'center space-between'
13
- },
14
-
15
- Header: {},
16
-
17
- content: {},
18
-
19
- Footer: { text: 'Footer' }
20
- }
@@ -1,68 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex, Link } from 'smbls'
4
-
5
- export const Header = {
6
- extend: Flex,
7
- props: {
8
- minWidth: '100%',
9
- padding: 'Z B',
10
- align: 'center space-between'
11
- },
12
-
13
- Flex: {
14
- props: { gap: 'C' },
15
- childExtend: {
16
- extend: Link,
17
- props: ({ props }) => ({
18
- textDecoration: window.location.pathname === props.href ? 'underline' : 'none'
19
- })
20
- },
21
- Text_logo: { href: '/', text: 'Hello!' },
22
- Text_about: { href: '/about', text: 'About' }
23
- },
24
-
25
- ThemeSwitcher: {}
26
- }
27
-
28
- export const ThemeSwitcher = {
29
- extend: Flex,
30
- props: { gap: 'A2' },
31
- childExtend: {
32
- props: (element, state) => ({
33
- active: state.globalTheme === element.key,
34
- cursor: 'pointer',
35
- '.active': {
36
- fontWeight: '900'
37
- }
38
- }),
39
- on: {
40
- click: (event, element, state) => {
41
- state.update({ globalTheme: element.key })
42
- }
43
- }
44
- },
45
- dark: { text: 'Dark' },
46
- light: { text: 'Light' },
47
- midnight: { text: 'Midnight' }
48
- }
49
-
50
- export const Footer = {
51
- props: {
52
- padding: 'Z B',
53
- order: 9
54
- }
55
- }
56
-
57
- export const TestComponent = {
58
- props: {
59
- padding: 'Z B',
60
- round: 'A',
61
- margin: 'A -Z C',
62
- background: 'orange .35',
63
- text: 'test',
64
- ':hover': {
65
- background: 'orange .35 +35'
66
- }
67
- }
68
- }
@@ -1,92 +0,0 @@
1
- 'use strict'
2
-
3
- import { DEFAULT_ICONS } from '@symbo.ls/default-icons'
4
-
5
- /**
6
- * Colors
7
- * @tutorial https://docs.symbols.app/color
8
- */
9
- const COLOR = {
10
- transparent: 'transparent',
11
- black: 'black',
12
- white: 'white',
13
- orange: '#E98232'
14
- }
15
-
16
- /**
17
- * Gradients
18
- * @tutorial https://docs.symbols.app/color
19
- */
20
- const GRADIENT = {}
21
-
22
- /**
23
- * Themes
24
- * @tutorial https://docs.symbols.app/theme
25
- */
26
- const THEME = {
27
- document: {
28
- '@dark': {
29
- color: 'white',
30
- background: 'black'
31
- },
32
- '@light': {
33
- background: 'white',
34
- color: 'black'
35
- },
36
- '@midnight': {
37
- background: '#112233',
38
- color: 'white'
39
- }
40
- }
41
- }
42
-
43
- /**
44
- * Fonts
45
- * @tutorial https://docs.symbols.app/font
46
- */
47
- const FONT = {}
48
-
49
- /**
50
- * Font families
51
- * @tutorial https://docs.symbols.app/font
52
- */
53
- const FONT_FAMILY = {}
54
-
55
- /**
56
- * Typography
57
- * @tutorial https://docs.symbols.app/typography
58
- * @tutorial https://docs.symbols.app/sequence
59
- */
60
- const TYPOGRAPHY = {
61
- base: 16,
62
- ratio: 1.2
63
- }
64
-
65
- /**
66
- * Spacing
67
- * @tutorial https://docs.symbols.app/spacing
68
- * @tutorial https://docs.symbols.app/sequence
69
- */
70
- const SPACING = {}
71
-
72
- const options = {
73
- verbose: false,
74
- useReset: true,
75
- useDocumentTheme: true,
76
- useFontImport: true,
77
- useVariable: true,
78
- useSvgSprite: true,
79
- useIconSprite: true
80
- }
81
-
82
- export default {
83
- ...options,
84
- COLOR,
85
- GRADIENT,
86
- THEME,
87
- ICONS: DEFAULT_ICONS,
88
- TYPOGRAPHY,
89
- SPACING,
90
- FONT,
91
- FONT_FAMILY
92
- }
package/example/index.js DELETED
@@ -1,16 +0,0 @@
1
- 'use strict'
2
-
3
- import config from '../symbols.json'
4
- import { create } from 'smbls'
5
-
6
- import { App } from './app'
7
- import designSystem from './designSystem'
8
- import * as components from './components'
9
- import pages from './pages'
10
-
11
- create(App, {
12
- key: config.key,
13
- designSystem,
14
- components,
15
- pages
16
- })
package/example/pages.js DELETED
@@ -1,34 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- '/': {
5
- H1: 'Hello Symbols',
6
- P: 'Lorem ipsum dolor sit amet',
7
- TestComponent: {},
8
- Link: {
9
- props: {
10
- href: 'https://symbols.app/developers',
11
- target: '_blank',
12
- ':hover': {
13
- '& svg': {
14
- margin: '- Y - -'
15
- }
16
- }
17
- },
18
- Icon: {
19
- transition: 'margin ease A',
20
- margin: '- X - -',
21
- name: 'arrow up right'
22
- },
23
- Span: 'Checkout Docs'
24
- }
25
- },
26
- '/about': {
27
- H3: 'This is Symbols starter-kit',
28
- P: 'Lorem ipsum dolor sit amet',
29
- Link: {
30
- href: '/',
31
- text: 'Go Back'
32
- }
33
- }
34
- }
package/index.html DELETED
@@ -1,12 +0,0 @@
1
- <html background="#000">
2
- <head>
3
- <title>Documents</title>
4
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
5
- <meta name="apple-mobile-web-app-capable" content="yes">
6
-
7
- <meta charset="UTF-8">
8
- </head>
9
- <body>
10
- <script type="module" src="./src/index.js"></script>
11
- </body>
12
- </html>
package/src/components.js DELETED
@@ -1,55 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex, Link } from 'smbls'
4
-
5
- export const Header = {
6
- extend: Flex,
7
- props: {
8
- minWidth: '100%',
9
- padding: 'Z B',
10
- align: 'center space-between'
11
- },
12
-
13
- Flex: {
14
- props: { gap: 'C' },
15
- childExtend: {
16
- extend: Link,
17
- props: ({ props }) => ({
18
- textDecoration: window.location.pathname === props.href ? 'underline' : 'none'
19
- })
20
- },
21
- Text_logo: { href: '/', text: 'Hello!' },
22
- Text_about: { href: '/about', text: 'About' }
23
- },
24
-
25
- ThemeSwitcher: {}
26
- }
27
-
28
- export const ThemeSwitcher = {
29
- extend: Flex,
30
- props: { gap: 'A2' },
31
- childExtend: {
32
- props: (element, state) => ({
33
- active: state.globalTheme === element.key,
34
- cursor: 'pointer',
35
- '.active': {
36
- fontWeight: '900'
37
- }
38
- }),
39
- on: {
40
- click: (event, element, state) => {
41
- state.update({ globalTheme: element.key })
42
- }
43
- }
44
- },
45
- dark: { text: 'Dark' },
46
- light: { text: 'Light' },
47
- midnight: { text: 'Midnight' }
48
- }
49
-
50
- export const Footer = {
51
- props: {
52
- padding: 'Z B',
53
- order: 9
54
- }
55
- }
@@ -1,92 +0,0 @@
1
- 'use strict'
2
-
3
- import { DEFAULT_ICONS } from '@symbo.ls/default-icons'
4
-
5
- /**
6
- * Colors
7
- * @tutorial https://docs.symbols.app/color
8
- */
9
- const COLOR = {
10
- transparent: 'transparent',
11
- black: 'black',
12
- white: 'white',
13
- orange: '#E98232'
14
- }
15
-
16
- /**
17
- * Gradients
18
- * @tutorial https://docs.symbols.app/color
19
- */
20
- const GRADIENT = {}
21
-
22
- /**
23
- * Themes
24
- * @tutorial https://docs.symbols.app/theme
25
- */
26
- const THEME = {
27
- document: {
28
- '@dark': {
29
- color: 'white',
30
- background: 'black'
31
- },
32
- '@light': {
33
- background: 'white',
34
- color: 'black'
35
- },
36
- '@midnight': {
37
- background: '#112233',
38
- color: 'white'
39
- }
40
- }
41
- }
42
-
43
- /**
44
- * Fonts
45
- * @tutorial https://docs.symbols.app/font
46
- */
47
- const FONT = {}
48
-
49
- /**
50
- * Font families
51
- * @tutorial https://docs.symbols.app/font
52
- */
53
- const FONT_FAMILY = {}
54
-
55
- /**
56
- * Typography
57
- * @tutorial https://docs.symbols.app/typography
58
- * @tutorial https://docs.symbols.app/sequence
59
- */
60
- const TYPOGRAPHY = {
61
- base: 16,
62
- ratio: 1.2
63
- }
64
-
65
- /**
66
- * Spacing
67
- * @tutorial https://docs.symbols.app/spacing
68
- * @tutorial https://docs.symbols.app/sequence
69
- */
70
- const SPACING = {}
71
-
72
- const options = {
73
- verbose: false,
74
- useReset: true,
75
- useDocumentTheme: true,
76
- useFontImport: true,
77
- useVariable: true,
78
- useSvgSprite: true,
79
- useIconSprite: true
80
- }
81
-
82
- export default {
83
- ...options,
84
- COLOR,
85
- GRADIENT,
86
- THEME,
87
- ICONS: DEFAULT_ICONS,
88
- TYPOGRAPHY,
89
- SPACING,
90
- FONT,
91
- FONT_FAMILY
92
- }
package/src/index.js DELETED
@@ -1,28 +0,0 @@
1
- 'use strict'
2
-
3
- import { create, Flex } from 'smbls'
4
-
5
- import designSystem from './designSystem'
6
- import * as components from './components'
7
- import pages from './pages'
8
-
9
- create({
10
- extend: Flex,
11
-
12
- props: {
13
- theme: 'document',
14
- flow: 'column',
15
- height: '100vh',
16
- align: 'center space-between'
17
- },
18
-
19
- Header: {},
20
-
21
- content: {},
22
-
23
- Footer: { text: 'Footer' }
24
- }, {
25
- designSystem,
26
- components,
27
- pages
28
- })
package/src/pages.js DELETED
@@ -1,12 +0,0 @@
1
- 'use strict'
2
-
3
- export default {
4
- '/': {
5
- H1: { text: 'Hello Symbols' },
6
- P: { text: 'Lorem ipsum dolor sit amet' }
7
- },
8
- '/about': {
9
- H3: { text: 'This is Symbols starter-kit' },
10
- P: { text: 'Lorem ipsum dolor sit amet' }
11
- }
12
- }