@spark-ui/divider 0.1.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/CHANGELOG.md +20 -0
- package/LICENSE.md +21 -0
- package/README.md +13 -0
- package/dist/Divider.d.ts +26 -0
- package/dist/Divider.styles.d.ts +8 -0
- package/dist/DividerContent.d.ts +9 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +14 -0
- package/dist/public/docgen.json +162 -0
- package/dist/variants/intents.d.ts +17 -0
- package/package.json +49 -0
- package/tsconfig.json +4 -0
- package/vite.config.ts +6 -0
package/CHANGELOG.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
+
|
6
|
+
# 0.1.0 (2023-10-31)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- **divider:** add data-spark-component attribute ([a53b5c4](https://github.com/adevinta/spark/commit/a53b5c412766c8d1c7345418bea0af1743736c47))
|
11
|
+
- **divider:** add default values ([7c8c9ef](https://github.com/adevinta/spark/commit/7c8c9efd559c06955ce84f71497971ddce035b4c))
|
12
|
+
- **divider:** change variants directory name ([eb8a141](https://github.com/adevinta/spark/commit/eb8a1412539f7d52981107adfcdea80c1806d693))
|
13
|
+
- **divider:** reduce complexity ([d900ca4](https://github.com/adevinta/spark/commit/d900ca4eb80e6ec7c01cd315f8ad7004d9da79f3))
|
14
|
+
- **divider:** types ([1124544](https://github.com/adevinta/spark/commit/1124544d503783a9429db2eb909f0f0abbd40c34))
|
15
|
+
|
16
|
+
### Features
|
17
|
+
|
18
|
+
- **divider:** add intents ([94a67eb](https://github.com/adevinta/spark/commit/94a67ebd384a3fb8e19977ce8ebaffb2a87d5a2f))
|
19
|
+
- **divider:** initial aproach ([4dffc8b](https://github.com/adevinta/spark/commit/4dffc8bdabe2bbb3bc128de30fe11f57fae3683f))
|
20
|
+
- **divider:** reduces the amount of intents ([eb8b687](https://github.com/adevinta/spark/commit/eb8b687cbfb23caf98d25da96983cd7c156bfbeb))
|
package/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Adevinta ASA.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Divider
|
2
|
+
> @spark-ui/divider
|
3
|
+
|
4
|
+
[](https://sparkui.vercel.app/?path=/docs/components-divider--docs)
|
5
|
+
[](https://sparkui-adv.vercel.app/docs/components/divider)
|
6
|
+
[](https://github.com/adevinta/spark/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=component,divider)
|
7
|
+
[](https://www.npmjs.com/package/@spark-ui/divider)
|
8
|
+
|
9
|
+
|
10
|
+
This package is part of the [`@spark-ui`](https://github.com/adevinta/spark) react-js user interface component library project.
|
11
|
+
|
12
|
+
[](https://github.com/adevinta/spark/issues?q=is%3Aopen+label%3Acomponent+label%3Adivider)
|
13
|
+
[](https://github.com/adevinta/spark/blob/main/packages/components/divider/LICENSE.md)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { HTMLAttributes, PropsWithRef, ReactElement } from 'react';
|
2
|
+
import { type DividerStylesProps } from './Divider.styles';
|
3
|
+
export interface DividerProps extends PropsWithRef<HTMLAttributes<HTMLDivElement>>, Omit<DividerStylesProps, 'isEmpty'> {
|
4
|
+
/**
|
5
|
+
* Change the component to the HTML tag or custom component of the only child.
|
6
|
+
*/
|
7
|
+
asChild?: boolean;
|
8
|
+
children?: ReactElement;
|
9
|
+
/**
|
10
|
+
* The orientation of the inner content.
|
11
|
+
*/
|
12
|
+
alignment?: 'start' | 'end' | 'center';
|
13
|
+
/**
|
14
|
+
* The orientation of the separator.
|
15
|
+
*/
|
16
|
+
orientation?: 'vertical' | 'horizontal';
|
17
|
+
/**
|
18
|
+
* When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree.
|
19
|
+
*/
|
20
|
+
isDecorative?: boolean;
|
21
|
+
/**
|
22
|
+
* Color scheme of the divider.
|
23
|
+
*/
|
24
|
+
intent?: 'outline' | 'current';
|
25
|
+
}
|
26
|
+
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
2
|
+
export declare const dividerStyles: (props?: ({
|
3
|
+
isEmpty?: boolean | null | undefined;
|
4
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
5
|
+
alignment?: "start" | "end" | "center" | null | undefined;
|
6
|
+
intent?: "current" | "outline" | null | undefined;
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
8
|
+
export type DividerStylesProps = VariantProps<typeof dividerStyles>;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { HTMLAttributes, PropsWithRef, ReactNode } from 'react';
|
2
|
+
export interface DividerContentProps extends PropsWithRef<HTMLAttributes<HTMLSpanElement>> {
|
3
|
+
/**
|
4
|
+
* Change the component to the HTML tag or custom component of the only child.
|
5
|
+
*/
|
6
|
+
asChild?: boolean;
|
7
|
+
children?: ReactNode;
|
8
|
+
}
|
9
|
+
export declare const DividerContent: import("react").ForwardRefExoticComponent<DividerContentProps & import("react").RefAttributes<HTMLSpanElement>>;
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { type DividerProps } from './Divider';
|
3
|
+
import { DividerContent } from './DividerContent';
|
4
|
+
export { type DividerContentProps } from './DividerContent';
|
5
|
+
export declare const Divider: FC<DividerProps> & {
|
6
|
+
Content: typeof DividerContent;
|
7
|
+
};
|
package/dist/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),g=require("@radix-ui/react-separator"),l=require("class-variance-authority"),e=require("@spark-ui/internal-utils"),u=[{intent:"current",isEmpty:!0,class:e.tw(["border-current"])},{intent:"current",isEmpty:!1,class:e.tw(["before:border-current after:border-current"])},{intent:"outline",isEmpty:!0,class:e.tw(["border-outline"])},{intent:"outline",isEmpty:!1,class:e.tw(["before:border-outline after:border-outline"])}],p=l.cva(["overflow-hidden"],{variants:{isEmpty:{true:["border-solid"],false:["inline-flex items-center","after:border-solid before:border-solid"]},orientation:{vertical:["w-fit inline-flex"],horizontal:["w-full"]},alignment:{start:[],end:[],center:[]},intent:{current:[],outline:[]}},defaultVariants:{orientation:"horizontal",alignment:"center",intent:"outline"},compoundVariants:[{isEmpty:!0,orientation:"horizontal",class:e.tw(["my-lg border-t-sm"])},{isEmpty:!0,orientation:"vertical",class:e.tw(["mx-lg min-h-sz-24 border-l-sm"])},{isEmpty:!1,orientation:"horizontal",class:e.tw(["flex-row my-sm grow-0","before:border-t-sm","after:border-t-sm","[&>*]:px-lg"])},{isEmpty:!1,orientation:"vertical",class:e.tw(["flex-col mx-sm","before:border-l-sm","after:border-l-sm","[&>*]:py-lg"])},{isEmpty:!1,orientation:"horizontal",alignment:"end",class:e.tw(["after:w-sz-40 before:grow after:grow-0"])},{isEmpty:!1,orientation:"horizontal",alignment:"start",class:e.tw(["before:w-sz-40 before:grow-0 after:grow"])},{isEmpty:!1,orientation:"horizontal",alignment:"center",class:e.tw(["justify-center before:grow after:grow"])},{isEmpty:!1,orientation:"vertical",alignment:"end",class:e.tw(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"start",class:e.tw(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"])},{isEmpty:!1,orientation:"vertical",alignment:"center",class:e.tw(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"])},...u]}),y=r.forwardRef(({asChild:t,className:n,isDecorative:i=!1,children:o,orientation:s="horizontal",alignment:m="center",intent:f="outline",...d},w)=>{const b=t?!o?.props?.children:!o;return r.createElement(g.Root,{"data-spark-component":"divider",asChild:t,className:l.cx(p({isEmpty:b,orientation:s,alignment:m,intent:f}),n),orientation:s,ref:w,decorative:i,...d},o)}),c=r.forwardRef(({children:t,...n},i)=>t?r.createElement("span",{ref:i,...n},t):null);c.displayName="Divider.Content";const a=Object.assign(y,{Content:c});a.displayName="Divider",a.Content.displayName="Divider.Content",exports.Divider=a;
|
package/dist/index.mjs
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
import s, { forwardRef as l } from "react";
|
2
|
+
import { Root as g } from "@radix-ui/react-separator";
|
3
|
+
import { cva as y, cx as u } from "class-variance-authority";
|
4
|
+
import { tw as e } from "@spark-ui/internal-utils";
|
5
|
+
const h = [{ intent: "current", isEmpty: !0, class: e(["border-current"]) }, { intent: "current", isEmpty: !1, class: e(["before:border-current after:border-current"]) }, { intent: "outline", isEmpty: !0, class: e(["border-outline"]) }, { intent: "outline", isEmpty: !1, class: e(["before:border-outline after:border-outline"]) }], w = y(["overflow-hidden"], { variants: { isEmpty: { true: ["border-solid"], false: ["inline-flex items-center", "after:border-solid before:border-solid"] }, orientation: { vertical: ["w-fit inline-flex"], horizontal: ["w-full"] }, alignment: { start: [], end: [], center: [] }, intent: { current: [], outline: [] } }, defaultVariants: { orientation: "horizontal", alignment: "center", intent: "outline" }, compoundVariants: [{ isEmpty: !0, orientation: "horizontal", class: e(["my-lg border-t-sm"]) }, { isEmpty: !0, orientation: "vertical", class: e(["mx-lg min-h-sz-24 border-l-sm"]) }, { isEmpty: !1, orientation: "horizontal", class: e(["flex-row my-sm grow-0", "before:border-t-sm", "after:border-t-sm", "[&>*]:px-lg"]) }, { isEmpty: !1, orientation: "vertical", class: e(["flex-col mx-sm", "before:border-l-sm", "after:border-l-sm", "[&>*]:py-lg"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "end", class: e(["after:w-sz-40 before:grow after:grow-0"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "start", class: e(["before:w-sz-40 before:grow-0 after:grow"]) }, { isEmpty: !1, orientation: "horizontal", alignment: "center", class: e(["justify-center before:grow after:grow"]) }, { isEmpty: !1, orientation: "vertical", alignment: "end", class: e(["after:h-sz-40 before:grow after:grow-0 before:min-h-sz-40"]) }, { isEmpty: !1, orientation: "vertical", alignment: "start", class: e(["before:h-sz-40 before:grow-0 after:grow after:min-h-sz-40"]) }, { isEmpty: !1, orientation: "vertical", alignment: "center", class: e(["justify-center before:grow after:grow before:min-h-sz-40 after:min-h-sz-40"]) }, ...h] }), E = l(({ asChild: t, className: r, isDecorative: n = !1, children: i, orientation: o = "horizontal", alignment: c = "center", intent: f = "outline", ...d }, p) => {
|
6
|
+
const b = t ? !i?.props?.children : !i;
|
7
|
+
return s.createElement(g, { "data-spark-component": "divider", asChild: t, className: u(w({ isEmpty: b, orientation: o, alignment: c, intent: f }), r), orientation: o, ref: p, decorative: n, ...d }, i);
|
8
|
+
}), m = l(({ children: t, ...r }, n) => t ? s.createElement("span", { ref: n, ...r }, t) : null);
|
9
|
+
m.displayName = "Divider.Content";
|
10
|
+
const a = Object.assign(E, { Content: m });
|
11
|
+
a.displayName = "Divider", a.Content.displayName = "Divider.Content";
|
12
|
+
export {
|
13
|
+
a as Divider
|
14
|
+
};
|
@@ -0,0 +1,162 @@
|
|
1
|
+
{
|
2
|
+
"Divider": {
|
3
|
+
"tags": {},
|
4
|
+
"description": "",
|
5
|
+
"displayName": "Divider",
|
6
|
+
"methods": [],
|
7
|
+
"props": {
|
8
|
+
"asChild": {
|
9
|
+
"defaultValue": null,
|
10
|
+
"description": "Change the component to the HTML tag or custom component of the only child.",
|
11
|
+
"name": "asChild",
|
12
|
+
"parent": {
|
13
|
+
"fileName": "divider/src/Divider.tsx",
|
14
|
+
"name": "DividerProps"
|
15
|
+
},
|
16
|
+
"declarations": [
|
17
|
+
{
|
18
|
+
"fileName": "divider/src/Divider.tsx",
|
19
|
+
"name": "DividerProps"
|
20
|
+
}
|
21
|
+
],
|
22
|
+
"required": false,
|
23
|
+
"type": {
|
24
|
+
"name": "boolean"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"alignment": {
|
28
|
+
"defaultValue": null,
|
29
|
+
"description": "The orientation of the inner content.",
|
30
|
+
"name": "alignment",
|
31
|
+
"parent": {
|
32
|
+
"fileName": "divider/src/Divider.tsx",
|
33
|
+
"name": "DividerProps"
|
34
|
+
},
|
35
|
+
"declarations": [
|
36
|
+
{
|
37
|
+
"fileName": "divider/src/Divider.tsx",
|
38
|
+
"name": "DividerProps"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"required": false,
|
42
|
+
"type": {
|
43
|
+
"name": "enum",
|
44
|
+
"raw": "\"start\" | \"end\" | \"center\"",
|
45
|
+
"value": [
|
46
|
+
{
|
47
|
+
"value": "\"start\""
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"value": "\"end\""
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"value": "\"center\""
|
54
|
+
}
|
55
|
+
]
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"orientation": {
|
59
|
+
"defaultValue": null,
|
60
|
+
"description": "The orientation of the separator.",
|
61
|
+
"name": "orientation",
|
62
|
+
"parent": {
|
63
|
+
"fileName": "divider/src/Divider.tsx",
|
64
|
+
"name": "DividerProps"
|
65
|
+
},
|
66
|
+
"declarations": [
|
67
|
+
{
|
68
|
+
"fileName": "divider/src/Divider.tsx",
|
69
|
+
"name": "DividerProps"
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"required": false,
|
73
|
+
"type": {
|
74
|
+
"name": "enum",
|
75
|
+
"raw": "\"vertical\" | \"horizontal\"",
|
76
|
+
"value": [
|
77
|
+
{
|
78
|
+
"value": "\"vertical\""
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"value": "\"horizontal\""
|
82
|
+
}
|
83
|
+
]
|
84
|
+
}
|
85
|
+
},
|
86
|
+
"isDecorative": {
|
87
|
+
"defaultValue": null,
|
88
|
+
"description": "When true, signifies that it is purely visual, carries no semantic meaning, and ensures it is not present in the accessibility tree.",
|
89
|
+
"name": "isDecorative",
|
90
|
+
"parent": {
|
91
|
+
"fileName": "divider/src/Divider.tsx",
|
92
|
+
"name": "DividerProps"
|
93
|
+
},
|
94
|
+
"declarations": [
|
95
|
+
{
|
96
|
+
"fileName": "divider/src/Divider.tsx",
|
97
|
+
"name": "DividerProps"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"required": false,
|
101
|
+
"type": {
|
102
|
+
"name": "boolean"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
"intent": {
|
106
|
+
"defaultValue": null,
|
107
|
+
"description": "Color scheme of the divider.",
|
108
|
+
"name": "intent",
|
109
|
+
"parent": {
|
110
|
+
"fileName": "divider/src/Divider.tsx",
|
111
|
+
"name": "DividerProps"
|
112
|
+
},
|
113
|
+
"declarations": [
|
114
|
+
{
|
115
|
+
"fileName": "divider/src/Divider.tsx",
|
116
|
+
"name": "DividerProps"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"required": false,
|
120
|
+
"type": {
|
121
|
+
"name": "enum",
|
122
|
+
"raw": "\"current\" | \"outline\"",
|
123
|
+
"value": [
|
124
|
+
{
|
125
|
+
"value": "\"current\""
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"value": "\"outline\""
|
129
|
+
}
|
130
|
+
]
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
},
|
135
|
+
"Divider.Content": {
|
136
|
+
"tags": {},
|
137
|
+
"description": "",
|
138
|
+
"displayName": "Divider.Content",
|
139
|
+
"methods": [],
|
140
|
+
"props": {
|
141
|
+
"asChild": {
|
142
|
+
"defaultValue": null,
|
143
|
+
"description": "Change the component to the HTML tag or custom component of the only child.",
|
144
|
+
"name": "asChild",
|
145
|
+
"parent": {
|
146
|
+
"fileName": "divider/src/DividerContent.tsx",
|
147
|
+
"name": "DividerContentProps"
|
148
|
+
},
|
149
|
+
"declarations": [
|
150
|
+
{
|
151
|
+
"fileName": "divider/src/DividerContent.tsx",
|
152
|
+
"name": "DividerContentProps"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"required": false,
|
156
|
+
"type": {
|
157
|
+
"name": "boolean"
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const intentVariants: readonly [{
|
2
|
+
readonly intent: "current";
|
3
|
+
readonly isEmpty: true;
|
4
|
+
readonly class: string[];
|
5
|
+
}, {
|
6
|
+
readonly intent: "current";
|
7
|
+
readonly isEmpty: false;
|
8
|
+
readonly class: string[];
|
9
|
+
}, {
|
10
|
+
readonly intent: "outline";
|
11
|
+
readonly isEmpty: true;
|
12
|
+
readonly class: string[];
|
13
|
+
}, {
|
14
|
+
readonly intent: "outline";
|
15
|
+
readonly isEmpty: false;
|
16
|
+
readonly class: string[];
|
17
|
+
}];
|
package/package.json
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"name": "@spark-ui/divider",
|
3
|
+
"version": "0.1.0",
|
4
|
+
"description": "A separator between two elements, usually consisting of a horizontal line.",
|
5
|
+
"publishConfig": {
|
6
|
+
"access": "public"
|
7
|
+
},
|
8
|
+
"keywords": [
|
9
|
+
"@spark-ui",
|
10
|
+
"react",
|
11
|
+
"component",
|
12
|
+
"accessible",
|
13
|
+
"accessibility",
|
14
|
+
"wai-aria",
|
15
|
+
"aria",
|
16
|
+
"a11y",
|
17
|
+
"divider"
|
18
|
+
],
|
19
|
+
"main": "./dist/index.js",
|
20
|
+
"module": "./dist/index.mjs",
|
21
|
+
"types": "./dist/index.d.ts",
|
22
|
+
"scripts": {
|
23
|
+
"build": "vite build"
|
24
|
+
},
|
25
|
+
"dependencies": {
|
26
|
+
"@radix-ui/react-separator": "1.0.3",
|
27
|
+
"@spark-ui/internal-utils": "^2.2.0"
|
28
|
+
},
|
29
|
+
"peerDependencies": {
|
30
|
+
"react": "^16.8 || ^17.0 || ^18.0",
|
31
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0",
|
32
|
+
"tailwindcss": "^3.0.0"
|
33
|
+
},
|
34
|
+
"repository": {
|
35
|
+
"type": "git",
|
36
|
+
"url": "https://github.com/adevinta/spark.git",
|
37
|
+
"directory": "packages/components/divider"
|
38
|
+
},
|
39
|
+
"config": {
|
40
|
+
"title": "divider",
|
41
|
+
"category": "components"
|
42
|
+
},
|
43
|
+
"bugs": {
|
44
|
+
"url": "https://github.com/adevinta/spark/issues?q=is%3Aopen+label%3Autility+label%3Adivider"
|
45
|
+
},
|
46
|
+
"homepage": "https://sparkui.vercel.app",
|
47
|
+
"license": "MIT",
|
48
|
+
"gitHead": "783a9fa51ba849ce0faee2552aa826e004e8ff33"
|
49
|
+
}
|
package/tsconfig.json
ADDED