@jobber/components 8.26.0 → 8.26.1

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.
@@ -33,10 +33,6 @@ numerical data (and their headers) round to the same decimal point, and are
33
33
  right-aligned. This makes it much easier for the reader to quickly parse large
34
34
  distinctions in dollar amounts, inventory counts, and other key business data.
35
35
 
36
- If you have a small list of information with a 1:1 label-to-data relationship
37
- (for example, the issued and due dates on an invoice), consider using
38
- [DescriptionList](../DescriptionList/DescriptionList.md).
39
-
40
36
  **Note**: The atomic DataTable components are the path forward and should be
41
37
  considered prior to using the [DataList](../DataList/DataList.md) and
42
38
  [Table](../Table/Table.md) components.
@@ -25,9 +25,7 @@ distinctions in dollar amounts, inventory counts, and other key business data.
25
25
 
26
26
  To list more complex collections of information (such as multi-line content like
27
27
  a detailed property address), you may want to consider the
28
- [List](../List/List.md) component. If you have a small list of information with
29
- a 1:1 label-to-data relationship (for example, the issued and due dates on an
30
- invoice), consider using [DescriptionList](../DescriptionList/DescriptionList.md).
28
+ [List](../List/List.md) component.
31
29
 
32
30
 
33
31
  ## Configuration
@@ -27,7 +27,6 @@
27
27
  [DataTable](./DataTable/DataTable.md)
28
28
  [Datepicker](./Datepicker/Datepicker.md)
29
29
  [DatePickerNotes](./DatePickerNotes/DatePickerNotes.md)
30
- [DescriptionList](./DescriptionList/DescriptionList.md)
31
30
  [Dialog](./Dialog/Dialog.md)
32
31
  [disabled-states](./disabled-states/disabled-states.md)
33
32
  [Disclosure](./Disclosure/Disclosure.md)
package/dist/index.cjs CHANGED
@@ -32,7 +32,6 @@ require('@jobber/hooks');
32
32
  require('./DataTableTable-cjs.js');
33
33
  var reactTable = require('@tanstack/react-table');
34
34
  var DatePicker = require('./DatePicker-cjs.js');
35
- var DescriptionList = require('./DescriptionList-cjs.js');
36
35
  var dialogReturnFocus = require('./dialogReturnFocus-cjs.js');
37
36
  var Disclosure = require('./Disclosure-cjs.js');
38
37
  var Divider = require('./Divider-cjs.js');
@@ -248,7 +247,6 @@ Object.defineProperty(exports, "createColumnHelper", {
248
247
  get: function () { return reactTable.createColumnHelper; }
249
248
  });
250
249
  exports.DatePicker = DatePicker.DatePicker;
251
- exports.DescriptionList = DescriptionList.DescriptionList;
252
250
  exports.Dialog = dialogReturnFocus.Dialog;
253
251
  exports.getDialogReturnFocus = dialogReturnFocus.getDialogReturnFocus;
254
252
  exports.getFirstFocusableWithin = dialogReturnFocus.getFirstFocusableWithin;
package/dist/index.d.mts CHANGED
@@ -23,7 +23,6 @@ export * from "./DataDump";
23
23
  export * from "./DataList";
24
24
  export { DataTable, createColumnHelper } from "./DataTable";
25
25
  export * from "./DatePicker";
26
- export * from "./DescriptionList";
27
26
  export * from "./Dialog";
28
27
  export * from "./Disclosure";
29
28
  export * from "./Divider";
package/dist/index.d.ts CHANGED
@@ -23,7 +23,6 @@ export * from "./DataDump";
23
23
  export * from "./DataList";
24
24
  export { DataTable, createColumnHelper } from "./DataTable";
25
25
  export * from "./DatePicker";
26
- export * from "./DescriptionList";
27
26
  export * from "./Dialog";
28
27
  export * from "./Disclosure";
29
28
  export * from "./Divider";
package/dist/index.mjs CHANGED
@@ -30,7 +30,6 @@ import '@jobber/hooks';
30
30
  import './DataTableTable-es.js';
31
31
  export { createColumnHelper } from '@tanstack/react-table';
32
32
  export { D as DatePicker } from './DatePicker-es.js';
33
- export { D as DescriptionList } from './DescriptionList-es.js';
34
33
  export { D as Dialog, g as getDialogReturnFocus, a as getFirstFocusableWithin } from './dialogReturnFocus-es.js';
35
34
  export { D as Disclosure } from './Disclosure-es.js';
36
35
  export { D as Divider } from './Divider-es.js';
package/dist/styles.css CHANGED
@@ -10365,47 +10365,6 @@ h2.react-datepicker__current-month {
10365
10365
  color: var(--color-heading);
10366
10366
  }
10367
10367
 
10368
- .BkruJ2-bRWg- {
10369
- margin: 0;
10370
- }
10371
-
10372
- .tpCvfS7kyDQ- {
10373
- display: -ms-flexbox;
10374
- display: flex;
10375
- -ms-flex-wrap: wrap;
10376
- flex-wrap: wrap;
10377
- padding: 8px 0;
10378
- padding: var(--space-small) 0;
10379
- border-bottom: 1px solid hsl(200, 13%, 87%);
10380
- border-bottom: var(--border-base) solid var(--color-border);
10381
- }
10382
-
10383
- .tpCvfS7kyDQ-:first-child {
10384
- padding-top: 0;
10385
- }
10386
-
10387
- .tpCvfS7kyDQ-:last-child {
10388
- padding-bottom: 0;
10389
- border-bottom: none;
10390
- }
10391
-
10392
- .tpCvfS7kyDQ- dd {
10393
- min-width: calc(16px * 7.5);
10394
- min-width: calc(var(--base-unit) * 7.5);
10395
- box-sizing: border-box;
10396
- padding-right: 8px;
10397
- padding-right: var(--space-small);
10398
- -webkit-margin-start: 0;
10399
- margin-left: 0;
10400
- -ms-flex: 1 1 60%;
10401
- flex: 1 1 60%;
10402
- }
10403
-
10404
- .tpCvfS7kyDQ- dt {
10405
- -ms-flex: 1 1 40%;
10406
- flex: 1 1 40%;
10407
- }
10408
-
10409
10368
  /* Dialog Sizes */
10410
10369
  .uYYyCR3l6E8- {
10411
10370
  --dialog-popup-max-width: 440px;
@@ -69,7 +69,6 @@
69
69
  "DataTable.SortableHeader",
70
70
  "DataTable.Table",
71
71
  "DatePicker",
72
- "DescriptionList",
73
72
  "Dialog",
74
73
  "Dialog.Actions",
75
74
  "Dialog.Body",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "8.26.0",
3
+ "version": "8.26.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -150,11 +150,6 @@
150
150
  "import": "./dist/DatePicker/index.mjs",
151
151
  "require": "./dist/DatePicker/index.cjs"
152
152
  },
153
- "./DescriptionList": {
154
- "types": "./dist/DescriptionList/index.d.ts",
155
- "import": "./dist/DescriptionList/index.mjs",
156
- "require": "./dist/DescriptionList/index.cjs"
157
- },
158
153
  "./Dialog": {
159
154
  "types": "./dist/Dialog/index.d.ts",
160
155
  "import": "./dist/Dialog/index.mjs",
@@ -545,5 +540,5 @@
545
540
  "> 1%",
546
541
  "IE 10"
547
542
  ],
548
- "gitHead": "4542a9c611cd00d7d25a48138bfed4365b3b0097"
543
+ "gitHead": "f743b743aa382bf927e6f6959e99e0e8d25048dc"
549
544
  }
@@ -1 +0,0 @@
1
- export * from "./dist/DescriptionList";
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true,
5
- });
6
-
7
- var DescriptionList = require("./dist/DescriptionList");
8
-
9
- Object.keys(DescriptionList).forEach(function(key) {
10
- if (key === "default" || key === "__esModule") return;
11
- Object.defineProperty(exports, key, {
12
- enumerable: true,
13
- get: function get() {
14
- return DescriptionList[key];
15
- },
16
- });
17
- });
@@ -1,11 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import React from "react";
3
- interface DescriptionListProps {
4
- /**
5
- * A tuple where the first item is the string to display as the term
6
- * and the second value is the string to display as the definition
7
- */
8
- readonly data: [string, string | ReactNode][];
9
- }
10
- export declare function DescriptionList({ data }: DescriptionListProps): React.JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var DescriptionList = require('../DescriptionList-cjs.js');
4
- require('react');
5
- require('../Typography-cjs.js');
6
- require('classnames');
7
-
8
-
9
-
10
- exports.DescriptionList = DescriptionList.DescriptionList;
@@ -1 +0,0 @@
1
- export { DescriptionList } from "./DescriptionList";
@@ -1,4 +0,0 @@
1
- export { D as DescriptionList } from '../DescriptionList-es.js';
2
- import 'react';
3
- import '../Typography-es.js';
4
- import 'classnames';
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var Typography = require('./Typography-cjs.js');
5
-
6
- var styles = {"descriptionList":"BkruJ2-bRWg-","termGroup":"tpCvfS7kyDQ-","spinning":"pkFPHChT5OI-"};
7
-
8
- function DescriptionList({ data }) {
9
- return (React.createElement("dl", { className: styles.descriptionList }, data.map(([term, description], i) => (React.createElement("div", { key: `${term}-${i}`, className: styles.termGroup },
10
- React.createElement(Typography.Typography, { element: "dt", textColor: "heading", size: "base" }, term),
11
- React.createElement(Typography.Typography, { element: "dd", textColor: "text", size: "base" }, description))))));
12
- }
13
-
14
- exports.DescriptionList = DescriptionList;
@@ -1,12 +0,0 @@
1
- import React__default from 'react';
2
- import { T as Typography } from './Typography-es.js';
3
-
4
- var styles = {"descriptionList":"BkruJ2-bRWg-","termGroup":"tpCvfS7kyDQ-","spinning":"pkFPHChT5OI-"};
5
-
6
- function DescriptionList({ data }) {
7
- return (React__default.createElement("dl", { className: styles.descriptionList }, data.map(([term, description], i) => (React__default.createElement("div", { key: `${term}-${i}`, className: styles.termGroup },
8
- React__default.createElement(Typography, { element: "dt", textColor: "heading", size: "base" }, term),
9
- React__default.createElement(Typography, { element: "dd", textColor: "text", size: "base" }, description))))));
10
- }
11
-
12
- export { DescriptionList as D };
@@ -1,25 +0,0 @@
1
- # Description List
2
-
3
- Description Lists are used to display a list of terms and descriptions.
4
-
5
- ## Design & usage guidelines
6
-
7
- The Description List is a great solution when you have a small list of
8
- information with a 1:1 label-to-data relationship. For example, the issued and
9
- due dates on an invoice, or the job type, billing type and duration of a job.
10
-
11
- ## Related components
12
-
13
- * To list more complex collections of related information, consider using a
14
- [List](../List/List.md).
15
- * To display structured data for comparison, consider using a
16
- [Table](../Table/Table.md).
17
-
18
-
19
- ## Props
20
-
21
- ### Web
22
-
23
- | Prop | Type | Required | Default | Description |
24
- |------|------|----------|---------|-------------|
25
- | `data` | `[string, ReactNode][]` | Yes | — | A tuple where the first item is the string to display as the term and the second value is the string to display as th... |