@momentum-design/components 0.12.5 → 0.12.7

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.
@@ -145,11 +145,6 @@ declare class Button extends Component {
145
145
  * @param active - The active state.
146
146
  */
147
147
  private modifyIconName;
148
- /**
149
- * Sets the class of 'icon' for icon buttons.
150
- * @param type - The type of the button.
151
- */
152
- private setClassBasedOnType;
153
148
  /**
154
149
  * Sets the variant attribute for the button component.
155
150
  * If the provided variant is not included in the BUTTON_VARIANTS,
@@ -174,7 +169,7 @@ declare class Button extends Component {
174
169
  */
175
170
  private setColor;
176
171
  /**
177
- * Sets or removes the aria-pressed attribute based on the active state.
172
+ * Sets the aria-pressed attribute based on the active state.
178
173
  *
179
174
  * @param element - The target element.
180
175
  * @param active - The active state.
@@ -157,7 +157,6 @@ class Button extends Component {
157
157
  }
158
158
  if (changedProperties.has('typeInternal')) {
159
159
  this.setSize(this.size);
160
- this.setClassBasedOnType(this.typeInternal);
161
160
  }
162
161
  if (changedProperties.has('prefixIcon') || changedProperties.has('postfixIcon')) {
163
162
  this.inferButtonType();
@@ -199,18 +198,6 @@ class Button extends Component {
199
198
  }
200
199
  }
201
200
  }
202
- /**
203
- * Sets the class of 'icon' for icon buttons.
204
- * @param type - The type of the button.
205
- */
206
- setClassBasedOnType(type) {
207
- if (type === BUTTON_TYPE_INTERNAL.ICON) {
208
- this.classList.add('mdc-icon-button');
209
- }
210
- else {
211
- this.classList.remove('mdc-icon-button');
212
- }
213
- }
214
201
  /**
215
202
  * Sets the variant attribute for the button component.
216
203
  * If the provided variant is not included in the BUTTON_VARIANTS,
@@ -252,17 +239,17 @@ class Button extends Component {
252
239
  }
253
240
  }
254
241
  /**
255
- * Sets or removes the aria-pressed attribute based on the active state.
242
+ * Sets the aria-pressed attribute based on the active state.
256
243
  *
257
244
  * @param element - The target element.
258
245
  * @param active - The active state.
259
246
  */
260
247
  setAriaPressed(element, active) {
261
248
  if (active) {
262
- element.setAttribute('aria-pressed', '');
249
+ element.setAttribute('aria-pressed', 'true');
263
250
  }
264
251
  else {
265
- element.removeAttribute('aria-pressed');
252
+ element.setAttribute('aria-pressed', 'false');
266
253
  }
267
254
  }
268
255
  /**
@@ -275,10 +262,10 @@ class Button extends Component {
275
262
  */
276
263
  setSoftDisabled(element, softDisabled) {
277
264
  if (softDisabled) {
278
- element.setAttribute('aria-disabled', '');
265
+ element.setAttribute('aria-disabled', 'true');
279
266
  }
280
267
  else {
281
- element.removeAttribute('aria-disabled');
268
+ element.setAttribute('aria-disabled', 'false');
282
269
  }
283
270
  }
284
271
  /**
@@ -292,7 +279,7 @@ class Button extends Component {
292
279
  */
293
280
  setDisabled(element, disabled) {
294
281
  if (disabled) {
295
- element.setAttribute('aria-disabled', '');
282
+ element.setAttribute('aria-disabled', 'true');
296
283
  this.prevTabindex = this.tabIndex;
297
284
  this.tabIndex = -1;
298
285
  }
@@ -349,12 +336,15 @@ class Button extends Component {
349
336
  const slot = (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot')) === null || _b === void 0 ? void 0 : _b.assignedNodes().length;
350
337
  if (slot && (this.prefixIcon || this.postfixIcon)) {
351
338
  this.typeInternal = BUTTON_TYPE_INTERNAL.PILL_WITH_ICON;
339
+ this.setAttribute('data-btn-type', 'pill-with-icon');
352
340
  }
353
341
  else if (!slot && (this.prefixIcon || this.postfixIcon)) {
354
342
  this.typeInternal = BUTTON_TYPE_INTERNAL.ICON;
343
+ this.setAttribute('data-btn-type', 'icon');
355
344
  }
356
345
  else {
357
346
  this.typeInternal = BUTTON_TYPE_INTERNAL.PILL;
347
+ this.setAttribute('data-btn-type', 'pill');
358
348
  }
359
349
  }
360
350
  // Note: @click is attached to each of the children of the button.
@@ -47,7 +47,6 @@ const styles = [hostFitContentStyles, css `
47
47
  font-weight: var(--mds-font-apps-body-large-bold-font-weight);
48
48
  }
49
49
 
50
-
51
50
  :host([variant="primary"]){
52
51
  background: var(--mdc-button-primary-background-color);
53
52
  color: var(--mdc-button-primary-color);
@@ -99,12 +98,12 @@ const styles = [hostFitContentStyles, css `
99
98
  cursor: auto;
100
99
  }
101
100
 
102
- :host([size="64"].mdc-icon-button),
103
- :host([size="52"].mdc-icon-button),
104
- :host([size="40"].mdc-icon-button),
105
- :host([size="32"].mdc-icon-button),
106
- :host([size="28"].mdc-icon-button),
107
- :host([size="24"].mdc-icon-button){
101
+ :host([size="64"][data-btn-type='icon']),
102
+ :host([size="52"][data-btn-type='icon']),
103
+ :host([size="40"][data-btn-type='icon']),
104
+ :host([size="32"][data-btn-type='icon']),
105
+ :host([size="28"][data-btn-type='icon']),
106
+ :host([size="24"][data-btn-type='icon']){
108
107
  border-radius: 6.25rem;
109
108
  aspect-ratio: 1;
110
109
  padding: unset;
@@ -145,6 +144,7 @@ const styles = [hostFitContentStyles, css `
145
144
  }
146
145
  :host([size="20"]){
147
146
  height: var(--mdc-button-height-size-20);
147
+ padding: 0.0625rem;
148
148
  }
149
149
 
150
150
  :host([color="accent"]){
@@ -0,0 +1,128 @@
1
+ import { CSSResult, PropertyValueMap } from 'lit';
2
+ import { Component } from '../../models';
3
+ import { DividerOrientation, DividerVariant } from './divider.types';
4
+ /**
5
+ * `mdc-divider` is a component that provides a line to separate and organize content.
6
+ * It can also include a button or text positioned centrally, allowing users to interact with the layout.
7
+ *
8
+ * **Divider Orientation:**
9
+ * - **Horizontal**: A thin, horizontal line.
10
+ * - **Vertical**: A thin, vertical line.
11
+ *
12
+ * **Divider Variants:**
13
+ * - **solid**: Solid line.
14
+ * - **gradient**: Gradient Line.
15
+ *
16
+ * **Divider Types:**
17
+ * - The type of divider is inferred based on the kind of slot present.
18
+ * - **Primary**: A simple horizontal or vertical divider.
19
+ * - **Text**: A horizontal divider with a text label in the center.
20
+ * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.
21
+ *
22
+ * **Accessibility:**
23
+ * - When the slot is replaced by an `mdc-button`:
24
+ * - `aria-label` should be passed to the `mdc-button`.
25
+ * - `aria-expanded` should be passed to the `mdc-button`.
26
+ *
27
+ * **Notes:**
28
+ * - If the slot is replaced by an invalid tag name or contains multiple elements,
29
+ * the divider defaults to the **Primary** type.
30
+ * - To override the styles of the divider, use the provided CSS custom properties.
31
+ *
32
+ * @tagname mdc-divider
33
+ *
34
+ * @cssproperty --mdc-divider-background-color - background color of the divider
35
+ * @cssproperty --mdc-divider-width - width of the divider
36
+ * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider
37
+ * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider
38
+ * @cssproperty --mdc-divider-text-size - font size of label in the text divider
39
+ * @cssproperty --mdc-divider-text-color - font color of label in the text divider
40
+ * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider
41
+ * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider
42
+ * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button
43
+ */
44
+ declare class Divider extends Component {
45
+ /**
46
+ * Two orientations of divider
47
+ * - **horizontal**: A thin, horizontal line with 0.0625rem width.
48
+ * - **vertical**: A thin, vertical line with 0.0625rem width.
49
+ *
50
+ * Note: We do not support "Vertical Text Divider" as of now.
51
+ * @default horizontal
52
+ */
53
+ orientation: DividerOrientation;
54
+ /**
55
+ * Two variants of divider
56
+ * - **solid**: Solid line.
57
+ * - **gradient**: Gradient Line that fades on either sides of the divider.
58
+ * @default solid
59
+ */
60
+ variant: DividerVariant;
61
+ /**
62
+ * Direction of the arrow icon, if applicable.
63
+ * - **positive**
64
+ * - **negative**
65
+ *
66
+ * Note: Positive and Negative directions are defined based on Cartesian plane.
67
+ * @default 'negative'
68
+ */
69
+ arrowDirection: string;
70
+ /**
71
+ * Position of the button, if applicable.
72
+ * - **positive**
73
+ * - **negative**
74
+ *
75
+ * Note: Positive and Negative directions are defined based on Cartesian plane.
76
+ * @default 'negative'
77
+ */
78
+ buttonPosition: string;
79
+ /**
80
+ * Sets the variant attribute for the divider component.
81
+ * If the provided variant is not included in the DIVIDER_VARIANT,
82
+ * it defaults to the value specified in DEFAULTS.VARIANT.
83
+ *
84
+ * @param variant - The variant to set.
85
+ */
86
+ private setVariant;
87
+ /**
88
+ * Sets the orientation attribute for the divider component.
89
+ * If the provided orientation is not included in the DIVIDER_ORIENTATION,
90
+ * it defaults to the value specified in DEFAULTS.ORIENTATION.
91
+ *
92
+ * @param orientation - The orientation to set.
93
+ */
94
+ private setOrientation;
95
+ /**
96
+ * Sets the buttonPosition and arrowDirection attribute for the divider component.
97
+ * If the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,
98
+ * it defaults to the value specified in DIRECTIONS based on the ORIENTATION.
99
+ *
100
+ * @param buttonPosition - The buttonPosition to set.
101
+ * @param arrowDirection - The arrowDirection to set.
102
+ */
103
+ private ensureValidDirections;
104
+ /**
105
+ * Configures the grabber button within the divider.
106
+ *
107
+ * - Sets the `prefix-icon` attribute for the grabber button based
108
+ * on the `arrow-direction` and `orientation` properties.
109
+ *
110
+ * This method updates the DOM element dynamically if a grabber button is present.
111
+ */
112
+ private setGrabberButton;
113
+ /**
114
+ * Determines the arrow icon based on the consumer-defined `arrowDirection`.
115
+ *
116
+ * @returns The icon that represents the arrow direction.
117
+ */
118
+ private getArrowIcon;
119
+ update(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
120
+ /**
121
+ * Infers the type of divider based on the kind of slot present.
122
+ * @param slot - default slot of divider
123
+ */
124
+ private inferDividerType;
125
+ protected render(): import("lit-html").TemplateResult<1>;
126
+ static styles: Array<CSSResult>;
127
+ }
128
+ export default Divider;
@@ -0,0 +1,222 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { html } from 'lit';
11
+ import { property } from 'lit/decorators.js';
12
+ import styles from './divider.styles';
13
+ import { Component } from '../../models';
14
+ import { ARROW_ICONS, BUTTON_TAG, DEFAULTS, DIRECTIONS, DIVIDER_ORIENTATION, DIVIDER_VARIANT, TEXT_TAG, } from './divider.constants';
15
+ /**
16
+ * `mdc-divider` is a component that provides a line to separate and organize content.
17
+ * It can also include a button or text positioned centrally, allowing users to interact with the layout.
18
+ *
19
+ * **Divider Orientation:**
20
+ * - **Horizontal**: A thin, horizontal line.
21
+ * - **Vertical**: A thin, vertical line.
22
+ *
23
+ * **Divider Variants:**
24
+ * - **solid**: Solid line.
25
+ * - **gradient**: Gradient Line.
26
+ *
27
+ * **Divider Types:**
28
+ * - The type of divider is inferred based on the kind of slot present.
29
+ * - **Primary**: A simple horizontal or vertical divider.
30
+ * - **Text**: A horizontal divider with a text label in the center.
31
+ * - **Grabber Button**: A horizontal or vertical divider with a styled button in the center.
32
+ *
33
+ * **Accessibility:**
34
+ * - When the slot is replaced by an `mdc-button`:
35
+ * - `aria-label` should be passed to the `mdc-button`.
36
+ * - `aria-expanded` should be passed to the `mdc-button`.
37
+ *
38
+ * **Notes:**
39
+ * - If the slot is replaced by an invalid tag name or contains multiple elements,
40
+ * the divider defaults to the **Primary** type.
41
+ * - To override the styles of the divider, use the provided CSS custom properties.
42
+ *
43
+ * @tagname mdc-divider
44
+ *
45
+ * @cssproperty --mdc-divider-background-color - background color of the divider
46
+ * @cssproperty --mdc-divider-width - width of the divider
47
+ * @cssproperty --mdc-divider-horizontal-gradient - gradient of the horizontal divider
48
+ * @cssproperty --mdc-divider-vertical-gradient - gradient of the vertical divider
49
+ * @cssproperty --mdc-divider-text-size - font size of label in the text divider
50
+ * @cssproperty --mdc-divider-text-color - font color of label in the text divider
51
+ * @cssproperty --mdc-divider-text-margin - left and right margin of label in the text divider
52
+ * @cssproperty --mdc-divider-text-line-height - line height of label in the text divider
53
+ * @cssproperty --mdc-divider-grabber-button-border-radius - border radius of the grabber button
54
+ */
55
+ class Divider extends Component {
56
+ constructor() {
57
+ super(...arguments);
58
+ /**
59
+ * Two orientations of divider
60
+ * - **horizontal**: A thin, horizontal line with 0.0625rem width.
61
+ * - **vertical**: A thin, vertical line with 0.0625rem width.
62
+ *
63
+ * Note: We do not support "Vertical Text Divider" as of now.
64
+ * @default horizontal
65
+ */
66
+ this.orientation = DEFAULTS.ORIENTATION;
67
+ /**
68
+ * Two variants of divider
69
+ * - **solid**: Solid line.
70
+ * - **gradient**: Gradient Line that fades on either sides of the divider.
71
+ * @default solid
72
+ */
73
+ this.variant = DEFAULTS.VARIANT;
74
+ /**
75
+ * Direction of the arrow icon, if applicable.
76
+ * - **positive**
77
+ * - **negative**
78
+ *
79
+ * Note: Positive and Negative directions are defined based on Cartesian plane.
80
+ * @default 'negative'
81
+ */
82
+ this.arrowDirection = DEFAULTS.ARROW_DIRECTION;
83
+ /**
84
+ * Position of the button, if applicable.
85
+ * - **positive**
86
+ * - **negative**
87
+ *
88
+ * Note: Positive and Negative directions are defined based on Cartesian plane.
89
+ * @default 'negative'
90
+ */
91
+ this.buttonPosition = DEFAULTS.BUTTON_DIRECTION;
92
+ }
93
+ /**
94
+ * Sets the variant attribute for the divider component.
95
+ * If the provided variant is not included in the DIVIDER_VARIANT,
96
+ * it defaults to the value specified in DEFAULTS.VARIANT.
97
+ *
98
+ * @param variant - The variant to set.
99
+ */
100
+ setVariant(variant) {
101
+ this.setAttribute('variant', Object.values(DIVIDER_VARIANT).includes(variant) ? variant : DEFAULTS.VARIANT);
102
+ }
103
+ /**
104
+ * Sets the orientation attribute for the divider component.
105
+ * If the provided orientation is not included in the DIVIDER_ORIENTATION,
106
+ * it defaults to the value specified in DEFAULTS.ORIENTATION.
107
+ *
108
+ * @param orientation - The orientation to set.
109
+ */
110
+ setOrientation(orientation) {
111
+ this.setAttribute('orientation', Object.values(DIVIDER_ORIENTATION).includes(orientation) ? orientation : DEFAULTS.ORIENTATION);
112
+ }
113
+ /**
114
+ * Sets the buttonPosition and arrowDirection attribute for the divider component.
115
+ * If the provided buttonPosition and arrowDirection are not included in the DIRECTIONS,
116
+ * it defaults to the value specified in DIRECTIONS based on the ORIENTATION.
117
+ *
118
+ * @param buttonPosition - The buttonPosition to set.
119
+ * @param arrowDirection - The arrowDirection to set.
120
+ */
121
+ ensureValidDirections() {
122
+ const defaultDirection = this.orientation === DIVIDER_ORIENTATION.HORIZONTAL
123
+ ? DIRECTIONS.NEGATIVE
124
+ : DIRECTIONS.POSITIVE;
125
+ if (!Object.values(DIRECTIONS).includes(this.buttonPosition)) {
126
+ this.buttonPosition = defaultDirection;
127
+ }
128
+ if (!Object.values(DIRECTIONS).includes(this.arrowDirection)) {
129
+ this.arrowDirection = defaultDirection;
130
+ }
131
+ }
132
+ /**
133
+ * Configures the grabber button within the divider.
134
+ *
135
+ * - Sets the `prefix-icon` attribute for the grabber button based
136
+ * on the `arrow-direction` and `orientation` properties.
137
+ *
138
+ * This method updates the DOM element dynamically if a grabber button is present.
139
+ */
140
+ setGrabberButton() {
141
+ const buttonElement = this.querySelector('mdc-button');
142
+ if (!buttonElement)
143
+ return;
144
+ this.ensureValidDirections();
145
+ const iconType = this.getArrowIcon();
146
+ buttonElement.setAttribute('variant', 'secondary');
147
+ buttonElement.setAttribute('prefix-icon', iconType);
148
+ }
149
+ /**
150
+ * Determines the arrow icon based on the consumer-defined `arrowDirection`.
151
+ *
152
+ * @returns The icon that represents the arrow direction.
153
+ */
154
+ getArrowIcon() {
155
+ const isHorizontal = this.orientation === DIVIDER_ORIENTATION.HORIZONTAL;
156
+ const isPositive = this.arrowDirection === DIRECTIONS.POSITIVE;
157
+ if (isHorizontal) {
158
+ return isPositive ? ARROW_ICONS.UP : ARROW_ICONS.DOWN;
159
+ }
160
+ return isPositive ? ARROW_ICONS.RIGHT : ARROW_ICONS.LEFT;
161
+ }
162
+ update(changedProperties) {
163
+ super.update(changedProperties);
164
+ if (changedProperties.has('orientation')) {
165
+ this.setOrientation(this.orientation);
166
+ }
167
+ if (changedProperties.has('variant')) {
168
+ this.setVariant(this.variant);
169
+ }
170
+ if (changedProperties.has('orientation')
171
+ || changedProperties.has('arrowDirection')
172
+ || changedProperties.has('buttonPosition')) {
173
+ this.setGrabberButton();
174
+ }
175
+ }
176
+ /**
177
+ * Infers the type of divider based on the kind of slot present.
178
+ * @param slot - default slot of divider
179
+ */
180
+ inferDividerType() {
181
+ var _a;
182
+ this.setAttribute('data-type', 'mdc-primary-divider');
183
+ const slot = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
184
+ const assignedElements = (slot === null || slot === void 0 ? void 0 : slot.assignedElements({ flatten: true })) || [];
185
+ if (assignedElements.length > 1)
186
+ return;
187
+ const hasTextChild = assignedElements.some((el) => el.tagName === TEXT_TAG.toUpperCase());
188
+ const hasButtonChild = assignedElements.some((el) => el.tagName === BUTTON_TAG.toUpperCase());
189
+ if (hasTextChild && !hasButtonChild) {
190
+ this.setAttribute('data-type', 'mdc-text-divider');
191
+ }
192
+ else if (!hasTextChild && hasButtonChild) {
193
+ this.setAttribute('data-type', 'mdc-grabber-divider');
194
+ this.setGrabberButton();
195
+ }
196
+ }
197
+ render() {
198
+ return html `
199
+ <div></div>
200
+ <slot @slotchange=${this.inferDividerType}></slot>
201
+ <div></div>
202
+ `;
203
+ }
204
+ }
205
+ Divider.styles = [...Component.styles, ...styles];
206
+ __decorate([
207
+ property({ type: String, reflect: true }),
208
+ __metadata("design:type", String)
209
+ ], Divider.prototype, "orientation", void 0);
210
+ __decorate([
211
+ property({ type: String, reflect: true }),
212
+ __metadata("design:type", String)
213
+ ], Divider.prototype, "variant", void 0);
214
+ __decorate([
215
+ property({ type: String, attribute: 'arrow-direction', reflect: true }),
216
+ __metadata("design:type", String)
217
+ ], Divider.prototype, "arrowDirection", void 0);
218
+ __decorate([
219
+ property({ type: String, attribute: 'button-position', reflect: true }),
220
+ __metadata("design:type", String)
221
+ ], Divider.prototype, "buttonPosition", void 0);
222
+ export default Divider;
@@ -0,0 +1,32 @@
1
+ import { TAG_NAME as BUTTON_TAG } from '../button/button.constants';
2
+ import { TAG_NAME as TEXT_TAG } from '../text/text.constants';
3
+ declare const TAG_NAME: "mdc-divider";
4
+ declare const DIVIDER_ORIENTATION: {
5
+ readonly HORIZONTAL: "horizontal";
6
+ readonly VERTICAL: "vertical";
7
+ };
8
+ declare const DIVIDER_VARIANT: {
9
+ readonly SOLID: "solid";
10
+ readonly GRADIENT: "gradient";
11
+ };
12
+ /**
13
+ * Direction types for both the arrow and button component.
14
+ * These directions are dependent on the divider's orientation.
15
+ */
16
+ declare const DIRECTIONS: {
17
+ readonly POSITIVE: "positive";
18
+ readonly NEGATIVE: "negative";
19
+ };
20
+ declare const ARROW_ICONS: {
21
+ readonly UP: "arrow-up-regular";
22
+ readonly DOWN: "arrow-down-regular";
23
+ readonly LEFT: "arrow-left-regular";
24
+ readonly RIGHT: "arrow-right-regular";
25
+ };
26
+ declare const DEFAULTS: {
27
+ readonly ORIENTATION: "horizontal";
28
+ readonly VARIANT: "solid";
29
+ readonly ARROW_DIRECTION: "negative";
30
+ readonly BUTTON_DIRECTION: "negative";
31
+ };
32
+ export { TAG_NAME, DEFAULTS, DIVIDER_VARIANT, DIVIDER_ORIENTATION, DIRECTIONS, BUTTON_TAG, TEXT_TAG, ARROW_ICONS, };
@@ -0,0 +1,33 @@
1
+ import utils from '../../utils/tag-name';
2
+ import { TAG_NAME as BUTTON_TAG } from '../button/button.constants';
3
+ import { TAG_NAME as TEXT_TAG } from '../text/text.constants';
4
+ const TAG_NAME = utils.constructTagName('divider');
5
+ const DIVIDER_ORIENTATION = {
6
+ HORIZONTAL: 'horizontal',
7
+ VERTICAL: 'vertical',
8
+ };
9
+ const DIVIDER_VARIANT = {
10
+ SOLID: 'solid',
11
+ GRADIENT: 'gradient',
12
+ };
13
+ /**
14
+ * Direction types for both the arrow and button component.
15
+ * These directions are dependent on the divider's orientation.
16
+ */
17
+ const DIRECTIONS = {
18
+ POSITIVE: 'positive',
19
+ NEGATIVE: 'negative',
20
+ };
21
+ const ARROW_ICONS = {
22
+ UP: 'arrow-up-regular',
23
+ DOWN: 'arrow-down-regular',
24
+ LEFT: 'arrow-left-regular',
25
+ RIGHT: 'arrow-right-regular',
26
+ };
27
+ const DEFAULTS = {
28
+ ORIENTATION: DIVIDER_ORIENTATION.HORIZONTAL,
29
+ VARIANT: DIVIDER_VARIANT.SOLID,
30
+ ARROW_DIRECTION: DIRECTIONS.NEGATIVE,
31
+ BUTTON_DIRECTION: DIRECTIONS.NEGATIVE,
32
+ };
33
+ export { TAG_NAME, DEFAULTS, DIVIDER_VARIANT, DIVIDER_ORIENTATION, DIRECTIONS, BUTTON_TAG, TEXT_TAG, ARROW_ICONS, };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Divider component styles
3
+ */
4
+ declare const styles: import("lit").CSSResult[];
5
+ export default styles;