@narmi/design_system 3.13.1 → 3.14.0-beta.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * DO NOT EDIT
3
- * Generated by style-dictionary on Thu Oct 26 2023 13:31:28 GMT+0000 (Coordinated Universal Time)
3
+ * Generated by style-dictionary on Thu Nov 09 2023 18:21:50 GMT-0500 (Eastern Standard Time)
4
4
  * github.com/narmi/design_system/
5
5
  */
6
6
 
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated by `scripts/buildTypes.mjs` at Thu Nov 09 2023 18:07:40 GMT-0500 (Eastern Standard Time)
3
+ */
4
+ export type IconName = "filter-2" | "business" | "profiles" | "star-filled" | "car-outline" | "dining" | "fingerprint" | "heart-pulse" | "paw" | "receipt" | "self-care" | "stroller" | "security, narmi-fat-security" | "feed, narmi-feed" | "activity" | "airplay" | "alert-circle" | "alert-octagon" | "alert-triangle" | "align-center" | "align-justify" | "align-left" | "align-right" | "anchor" | "aperture" | "archive" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "at-sign" | "award" | "bar-chart" | "bar-chart-2" | "battery" | "battery-charging" | "bell" | "bell-off" | "bluetooth" | "bold" | "book" | "book-open" | "bookmark" | "box" | "briefcase" | "calendar" | "camera" | "camera-off" | "cast" | "check" | "check-circle" | "check-square" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "chrome" | "circle" | "clipboard" | "clock" | "cloud" | "cloud-drizzle" | "cloud-lightning" | "cloud-off" | "cloud-rain" | "cloud-snow" | "code" | "codepen" | "codesandbox" | "coffee" | "columns" | "command" | "compass" | "copy" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "credit-card1" | "crop" | "crosshair" | "database" | "delete" | "disc" | "dollar-sign" | "download" | "download-cloud" | "droplet" | "edit" | "edit-2" | "edit-3" | "external-link" | "eye" | "eye-off" | "facebook" | "fast-forward" | "feather" | "figma" | "file" | "file-minus" | "file-plus" | "file-text1" | "film" | "filter" | "flag" | "folder" | "folder-minus" | "folder-plus" | "framer" | "frown" | "gift" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "github" | "gitlab" | "globe" | "grid" | "hard-drive" | "hash" | "headphones" | "heart" | "help-circle" | "hexagon" | "home" | "image" | "inbox" | "info" | "instagram" | "italic" | "key" | "layers" | "layout" | "life-buoy" | "link" | "link-2" | "linkedin" | "list" | "loader" | "lock" | "log-in" | "log-out" | "mail" | "map" | "map-pin" | "maximize" | "maximize-2" | "meh" | "menu" | "message-circle" | "message-square" | "mic" | "mic-off" | "minimize" | "minimize-2" | "minus" | "minus-circle" | "minus-square" | "monitor" | "moon" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "move" | "music" | "navigation" | "navigation-2" | "octagon" | "package" | "paperclip" | "pause" | "pause-circle" | "pen-tool" | "percent" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-missed" | "phone-off" | "phone-outgoing" | "pie-chart" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-square" | "pocket" | "power" | "printer" | "radio" | "refresh-ccw" | "refresh-cw" | "repeat" | "rewind" | "rotate-ccw" | "rotate-cw" | "rss" | "save" | "scissors" | "search" | "send" | "server" | "settings" | "share" | "share-2" | "shield" | "shield-off" | "shopping-bag" | "shopping-cart" | "shuffle" | "sidebar" | "skip-back" | "skip-forward" | "slack" | "slash" | "sliders" | "smartphone" | "smile" | "speaker" | "square" | "star" | "stop-circle" | "sun" | "sunrise" | "sunset" | "tablet" | "tag" | "target" | "terminal" | "thermometer" | "thumbs-down" | "thumbs-up" | "toggle-left" | "toggle-right" | "tool" | "trash" | "trash-2" | "trello" | "trending-down" | "trending-up" | "triangle" | "truck" | "tv" | "twitch" | "twitter" | "type" | "umbrella" | "underline" | "unlock" | "upload" | "upload-cloud" | "user" | "user-check" | "user-minus" | "user-plus" | "user-x" | "users" | "video" | "video-off" | "voicemail" | "volume" | "volume-1" | "volume-2" | "volume-x" | "watch" | "wifi" | "wifi-off" | "wind" | "x" | "x-circle" | "x-octagon" | "x-square" | "youtube" | "zap" | "zap-off" | "zoom-in" | "zoom-out" | "student" | "hand-spock" | "solid-circle" | "GroupOutlined" | "LocalAtm" | "MonetizationOnOutlined" | "SyncAlt" | "p2p" | "check-endorsed" | "piggy-bank" | "venmo" | "folder-open" | "group" | "settings-gear" | "admin-user" | "transfer-arrows, narmi-transfer" | "blob" | "bill" | "credit-card" | "logo-remitly" | "zelle-outline" | "question" | "signal" | "car" | "check-front" | "dollar-bill-line" | "wires" | "m2m" | "venmo-logo" | "face-id" | "library" | "profile" | "bank" | "office" | "file-text";
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { IconName } from "../types/Icon.types";
3
+ interface SeparatorListProps {
4
+ items: React.ReactNode[];
5
+ separator?: string;
6
+ noWrap?: boolean;
7
+ testId?: string;
8
+ icon?: IconName;
9
+ }
10
+ /**
11
+ * Takes a list of elements and places a visual separator between items.
12
+ */
13
+ declare const SeparatorList: React.FC<SeparatorListProps>;
14
+ export default SeparatorList;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated by `scripts/buildTypes.mjs` at Thu Nov 09 2023 18:21:49 GMT-0500 (Eastern Standard Time)
3
+ */
4
+ export type IconName = "filter-2" | "business" | "profiles" | "star-filled" | "car-outline" | "dining" | "fingerprint" | "heart-pulse" | "paw" | "receipt" | "self-care" | "stroller" | "security, narmi-fat-security" | "feed, narmi-feed" | "activity" | "airplay" | "alert-circle" | "alert-octagon" | "alert-triangle" | "align-center" | "align-justify" | "align-left" | "align-right" | "anchor" | "aperture" | "archive" | "arrow-down" | "arrow-down-circle" | "arrow-down-left" | "arrow-down-right" | "arrow-left" | "arrow-left-circle" | "arrow-right" | "arrow-right-circle" | "arrow-up" | "arrow-up-circle" | "arrow-up-left" | "arrow-up-right" | "at-sign" | "award" | "bar-chart" | "bar-chart-2" | "battery" | "battery-charging" | "bell" | "bell-off" | "bluetooth" | "bold" | "book" | "book-open" | "bookmark" | "box" | "briefcase" | "calendar" | "camera" | "camera-off" | "cast" | "check" | "check-circle" | "check-square" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-left" | "chevrons-right" | "chevrons-up" | "chrome" | "circle" | "clipboard" | "clock" | "cloud" | "cloud-drizzle" | "cloud-lightning" | "cloud-off" | "cloud-rain" | "cloud-snow" | "code" | "codepen" | "codesandbox" | "coffee" | "columns" | "command" | "compass" | "copy" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "credit-card1" | "crop" | "crosshair" | "database" | "delete" | "disc" | "dollar-sign" | "download" | "download-cloud" | "droplet" | "edit" | "edit-2" | "edit-3" | "external-link" | "eye" | "eye-off" | "facebook" | "fast-forward" | "feather" | "figma" | "file" | "file-minus" | "file-plus" | "file-text1" | "film" | "filter" | "flag" | "folder" | "folder-minus" | "folder-plus" | "framer" | "frown" | "gift" | "git-branch" | "git-commit" | "git-merge" | "git-pull-request" | "github" | "gitlab" | "globe" | "grid" | "hard-drive" | "hash" | "headphones" | "heart" | "help-circle" | "hexagon" | "home" | "image" | "inbox" | "info" | "instagram" | "italic" | "key" | "layers" | "layout" | "life-buoy" | "link" | "link-2" | "linkedin" | "list" | "loader" | "lock" | "log-in" | "log-out" | "mail" | "map" | "map-pin" | "maximize" | "maximize-2" | "meh" | "menu" | "message-circle" | "message-square" | "mic" | "mic-off" | "minimize" | "minimize-2" | "minus" | "minus-circle" | "minus-square" | "monitor" | "moon" | "more-horizontal" | "more-vertical" | "mouse-pointer" | "move" | "music" | "navigation" | "navigation-2" | "octagon" | "package" | "paperclip" | "pause" | "pause-circle" | "pen-tool" | "percent" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-missed" | "phone-off" | "phone-outgoing" | "pie-chart" | "play" | "play-circle" | "plus" | "plus-circle" | "plus-square" | "pocket" | "power" | "printer" | "radio" | "refresh-ccw" | "refresh-cw" | "repeat" | "rewind" | "rotate-ccw" | "rotate-cw" | "rss" | "save" | "scissors" | "search" | "send" | "server" | "settings" | "share" | "share-2" | "shield" | "shield-off" | "shopping-bag" | "shopping-cart" | "shuffle" | "sidebar" | "skip-back" | "skip-forward" | "slack" | "slash" | "sliders" | "smartphone" | "smile" | "speaker" | "square" | "star" | "stop-circle" | "sun" | "sunrise" | "sunset" | "tablet" | "tag" | "target" | "terminal" | "thermometer" | "thumbs-down" | "thumbs-up" | "toggle-left" | "toggle-right" | "tool" | "trash" | "trash-2" | "trello" | "trending-down" | "trending-up" | "triangle" | "truck" | "tv" | "twitch" | "twitter" | "type" | "umbrella" | "underline" | "unlock" | "upload" | "upload-cloud" | "user" | "user-check" | "user-minus" | "user-plus" | "user-x" | "users" | "video" | "video-off" | "voicemail" | "volume" | "volume-1" | "volume-2" | "volume-x" | "watch" | "wifi" | "wifi-off" | "wind" | "x" | "x-circle" | "x-octagon" | "x-square" | "youtube" | "zap" | "zap-off" | "zoom-in" | "zoom-out" | "student" | "hand-spock" | "solid-circle" | "GroupOutlined" | "LocalAtm" | "MonetizationOnOutlined" | "SyncAlt" | "p2p" | "check-endorsed" | "piggy-bank" | "venmo" | "folder-open" | "group" | "settings-gear" | "admin-user" | "transfer-arrows, narmi-transfer" | "blob" | "bill" | "credit-card" | "logo-remitly" | "zelle-outline" | "question" | "signal" | "car" | "check-front" | "dollar-bill-line" | "wires" | "m2m" | "venmo-logo" | "face-id" | "library" | "profile" | "bank" | "office" | "file-text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narmi/design_system",
3
- "version": "3.13.1",
3
+ "version": "3.14.0-beta.0",
4
4
  "description": "⚡ A consistent look-and-feel and extensible interface for Narmi experiences 🔥",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -12,17 +12,19 @@
12
12
  },
13
13
  "scripts": {
14
14
  "watch": "watch 'npm run build' src",
15
+ "build:types": "node ./scripts/buildTypes.mjs && npx tsc",
15
16
  "build:jsdoc": "node ./scripts/jsDoc.mjs",
16
17
  "build:classdoc": "node ./scripts/classManifest.mjs",
17
18
  "build:tokens": "style-dictionary build --config=./tokens/config.js",
18
19
  "build:components": "webpack --mode=production",
19
- "build": "npm run build:tokens && npm run build:jsdoc && npm run build:classdoc && npm run build:components",
20
+ "build": "npm run build:types && npm run build:tokens && npm run build:jsdoc && npm run build:classdoc && npm run build:components",
21
+ "build:clean": "rm -rf dist/ && npm run build",
20
22
  "prepublish": "npm run build",
21
23
  "test": "jest",
22
24
  "lint": "eslint \"./src/**\" \"./scripts/**\" \"./tokens/**\" --no-error-on-unmatched-pattern",
23
25
  "release": "semantic-release",
24
- "storybook": "start-storybook -p 6006",
25
- "build-storybook": "build-storybook",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build",
26
28
  "chromatic": "npx chromatic --project-token $CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes",
27
29
  "stats:components": "node ./scripts/component-adoption.mjs",
28
30
  "stats:classes": "node ./scripts/class-adoption.mjs",
@@ -39,23 +41,28 @@
39
41
  "@babel/plugin-proposal-class-properties": "^7.13.0",
40
42
  "@babel/preset-env": "^7.15.6",
41
43
  "@babel/preset-react": "^7.14.5",
44
+ "@babel/preset-typescript": "^7.23.2",
42
45
  "@commitlint/cli": "^13.2.0",
43
46
  "@commitlint/config-conventional": "^13.2.0",
44
47
  "@mdx-js/mdx": "^1.6.22",
45
48
  "@mdx-js/react": "^1.6.22",
46
49
  "@semantic-release/changelog": "^6.0.0",
47
50
  "@semantic-release/git": "^10.0.0",
48
- "@storybook/addon-a11y": "^6.4.20",
49
- "@storybook/addon-actions": "^6.4.20",
50
- "@storybook/addon-essentials": "^6.4.20",
51
- "@storybook/addon-links": "^6.4.20",
52
- "@storybook/builder-webpack5": "^6.4.20",
53
- "@storybook/manager-webpack5": "^6.4.20",
54
- "@storybook/react": "^6.4.20",
55
- "@storybook/theming": "^6.4.20",
51
+ "@storybook/addon-a11y": "^7.5.2",
52
+ "@storybook/addon-actions": "^7.5.2",
53
+ "@storybook/addon-essentials": "^7.5.2",
54
+ "@storybook/addon-links": "^7.5.2",
55
+ "@storybook/addon-mdx-gfm": "^7.5.2",
56
+ "@storybook/react": "^7.5.2",
57
+ "@storybook/react-webpack5": "^7.5.2",
58
+ "@storybook/theming": "^7.5.2",
56
59
  "@testing-library/jest-dom": "^5.15.0",
57
60
  "@testing-library/react": "^12.1.2",
58
61
  "@types/jest": "^27.0.2",
62
+ "@types/react": "^18.2.31",
63
+ "@types/react-dom": "^18.2.14",
64
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
65
+ "@typescript-eslint/parser": "^5.62.0",
59
66
  "babel-jest": "^26.6.3",
60
67
  "babel-loader": "^8.2.2",
61
68
  "chromatic": "^6",
@@ -65,10 +72,11 @@
65
72
  "core-js": "^3.15.2",
66
73
  "css": "^3.0.0",
67
74
  "css-loader": "^6.2.0",
68
- "eslint": "^8",
75
+ "eslint": "^8.52.0",
69
76
  "eslint-plugin-jest": "^26.1.3",
70
77
  "eslint-plugin-jsx-a11y": "^6.5.1",
71
78
  "eslint-plugin-react": "^7.29.4",
79
+ "eslint-plugin-storybook": "^0.6.15",
72
80
  "glob": "^7.2.0",
73
81
  "html-webpack-plugin": "^5.3.1",
74
82
  "husky": "^8.0.3",
@@ -82,13 +90,16 @@
82
90
  "pretty-quick": "^3.1.0",
83
91
  "prop-types": "^15.7.2",
84
92
  "react": "^16",
93
+ "react-docgen-typescript-plugin": "^1.0.5",
85
94
  "react-dom": "^16",
86
95
  "sass": "^1.45.0",
87
96
  "sass-loader": "^12.1.0",
88
97
  "semantic-release": "^19.0.0",
98
+ "storybook": "^7.5.2",
89
99
  "style-dictionary": "^3.7.1",
90
100
  "style-loader": "^0.23.1",
91
101
  "tinycolor2": "^1.4.2",
102
+ "typescript": "^5.2.2",
92
103
  "use-clipboard-copy": "^0.2.0",
93
104
  "watch": "^1.0.2",
94
105
  "webpack": "^5.50.0",