@utahdts/utah-design-system 1.1.1 → 1.2.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/dist/style.css CHANGED
@@ -1,8 +1,37 @@
1
1
  /*
2
+ BEM standard: Block, Element, Modifier
3
+ Block: use dashes to separate words:
4
+ - my-react-component
5
+ - super-list
6
+ - cats-r-great
7
+ Element: use two underscores for elements
8
+ Elements are children at any level of the Block:
9
+ - my-react-component__block
10
+ - super-list__name
11
+ - super-list__info
12
+ - cats-r-great__whiskers
13
+ Modifier: use two dashes for modifiers
14
+ - my-react-component--alt
15
+ - super-list--flat
16
+ - cats-r-great--black
17
+ */
18
+ /*
19
+ ############ _settings-index.scss ############
20
+ variables and settings
21
+ */
22
+ /*
2
23
  ############ _class-vars.scss ############
3
24
  CSS Classes - SCSS Variables
4
25
  */
5
26
  /*
27
+ ############ _settings-index.scss ############
28
+ variables and settings
29
+ */
30
+ /*
31
+ ############ _settings-index.scss ############
32
+ variables and settings
33
+ */
34
+ /*
6
35
  ############ _spacing.scss ############
7
36
  8px horizontal spacing
8
37
  */
@@ -205,6 +234,10 @@ CSS Classes - SCSS Variables
205
234
  margin-bottom: auto;
206
235
  }
207
236
 
237
+ /*
238
+ ############ _settings-index.scss ############
239
+ variables and settings
240
+ */
208
241
  /*
209
242
  ############ _font-size.scss ############
210
243
  Grid variables
@@ -242,6 +275,10 @@ Grid variables
242
275
  grid-column: span 2;
243
276
  }
244
277
 
278
+ /*
279
+ ############ _settings-index.scss ############
280
+ variables and settings
281
+ */
245
282
  /*
246
283
  ############ _font-size.scss ############
247
284
  Font size variables
@@ -350,6 +387,10 @@ Font size variables
350
387
  ############ _color-swatches.scss ############
351
388
  base color swatches for the design system
352
389
  */
390
+ /*
391
+ ############ _settings-index.scss ############
392
+ variables and settings
393
+ */
353
394
  /* Generated by Glyphter (http://www.glyphter.com) on Fri Jan 20 2023*/
354
395
  @font-face {
355
396
  font-family: "utah design system";
@@ -552,10 +593,6 @@ base color swatches for the design system
552
593
  ############ _media-size-vars.scss ############
553
594
  Media Sizes - SCSS Variables
554
595
  */
555
- /*
556
- ############ _settings-index.scss ############
557
- variables and settings
558
- */
559
596
  .utah-design-system {
560
597
  /* color */
561
598
  /* ######## Pick these colors to match your desired style ######## */
@@ -712,27 +749,22 @@ variables and settings
712
749
  }
713
750
 
714
751
  /*
715
- BEM standard: Block, Element, Modifier
716
- Block: use dashes to separate words:
717
- - my-react-component
718
- - super-list
719
- - cats-r-great
720
- Element: use two underscores for elements
721
- Elements are children at any level of the Block:
722
- - my-react-component__block
723
- - super-list__name
724
- - super-list__info
725
- - cats-r-great__whiskers
726
- Modifier: use two dashes for modifiers
727
- - my-react-component--alt
728
- - super-list--flat
729
- - cats-r-great--black
730
- */
752
+ ############ _settings-index.scss ############
753
+ variables and settings
754
+ */
731
755
  /*
732
756
  ############ _class-vars.scss ############
733
757
  CSS Classes - SCSS Variables
734
758
  */
735
759
  /*
760
+ ############ _settings-index.scss ############
761
+ variables and settings
762
+ */
763
+ /*
764
+ ############ _settings-index.scss ############
765
+ variables and settings
766
+ */
767
+ /*
736
768
  ############ _spacing.scss ############
737
769
  8px horizontal spacing
738
770
  */
@@ -991,6 +1023,10 @@ CSS Classes - SCSS Variables
991
1023
  margin-bottom: auto;
992
1024
  }
993
1025
 
1026
+ /*
1027
+ ############ _settings-index.scss ############
1028
+ variables and settings
1029
+ */
994
1030
  /*
995
1031
  ############ _font-size.scss ############
996
1032
  Grid variables
@@ -1032,6 +1068,10 @@ Grid variables
1032
1068
  grid-column: span 2;
1033
1069
  }
1034
1070
 
1071
+ /*
1072
+ ############ _settings-index.scss ############
1073
+ variables and settings
1074
+ */
1035
1075
  /*
1036
1076
  ############ _font-size.scss ############
1037
1077
  Font size variables
@@ -1140,6 +1180,10 @@ Font size variables
1140
1180
  ############ _color-swatches.scss ############
1141
1181
  base color swatches for the design system
1142
1182
  */
1183
+ /*
1184
+ ############ _settings-index.scss ############
1185
+ variables and settings
1186
+ */
1143
1187
  /* Generated by Glyphter (http://www.glyphter.com) on Fri Jan 20 2023*/
1144
1188
  @font-face {
1145
1189
  font-family: "utah design system";
@@ -1384,10 +1428,6 @@ base color swatches for the design system
1384
1428
  ############ _media-size-vars.scss ############
1385
1429
  Media Sizes - SCSS Variables
1386
1430
  */
1387
- /*
1388
- ############ _settings-index.scss ############
1389
- variables and settings
1390
- */
1391
1431
  .utah-design-system {
1392
1432
  /* color */
1393
1433
  /* ######## Pick these colors to match your desired style ######## */
@@ -1685,6 +1725,12 @@ containers and general design patterns, 2up, 3up, layout grids, etc.
1685
1725
  line-height: 1.6rem;
1686
1726
  }
1687
1727
 
1728
+ /*
1729
+ ############ _components-index.scss ############
1730
+ component specific, BEM (Block, Element, Modifier)
1731
+ @media for each component should be contained with the component.
1732
+ */
1733
+ /* ---- Base Components ---- */
1688
1734
  /*
1689
1735
  ############ _class-vars.scss ############
1690
1736
  CSS Classes - SCSS Variables
@@ -1880,7 +1926,8 @@ CSS Classes - SCSS Variables
1880
1926
  /*
1881
1927
  ############ _tools-index.scss ############
1882
1928
  scss mixins and functions
1883
- */ /*
1929
+ */
1930
+ /*
1884
1931
  ############ _button.scss ############
1885
1932
  */
1886
1933
  .utah-design-system {
@@ -3362,6 +3409,35 @@ base color swatches for the design system
3362
3409
  color: var(--primary-color);
3363
3410
  }
3364
3411
 
3412
+ /*
3413
+ BEM standard: Block, Element, Modifier
3414
+ Block: use dashes to separate words:
3415
+ - my-react-component
3416
+ - super-list
3417
+ - cats-r-great
3418
+ Element: use two underscores for elements
3419
+ Elements are children at any level of the Block:
3420
+ - my-react-component__block
3421
+ - super-list__name
3422
+ - super-list__info
3423
+ - cats-r-great__whiskers
3424
+ Modifier: use two dashes for modifiers
3425
+ - my-react-component--alt
3426
+ - super-list--flat
3427
+ - cats-r-great--black
3428
+ */
3429
+ /*
3430
+ ############ _settings-index.scss ############
3431
+ variables and settings
3432
+ */
3433
+ /*
3434
+ ############ _settings-index.scss ############
3435
+ variables and settings
3436
+ */
3437
+ /*
3438
+ ############ _settings-index.scss ############
3439
+ variables and settings
3440
+ */
3365
3441
  /*
3366
3442
  ############ _spacing.scss ############
3367
3443
  8px horizontal spacing
@@ -3621,6 +3697,10 @@ base color swatches for the design system
3621
3697
  margin-bottom: auto;
3622
3698
  }
3623
3699
 
3700
+ /*
3701
+ ############ _settings-index.scss ############
3702
+ variables and settings
3703
+ */
3624
3704
  /*
3625
3705
  ############ _font-size.scss ############
3626
3706
  Grid variables
@@ -3662,6 +3742,10 @@ Grid variables
3662
3742
  grid-column: span 2;
3663
3743
  }
3664
3744
 
3745
+ /*
3746
+ ############ _settings-index.scss ############
3747
+ variables and settings
3748
+ */
3665
3749
  /*
3666
3750
  ############ _font-size.scss ############
3667
3751
  Font size variables
@@ -3766,6 +3850,10 @@ Font size variables
3766
3850
  font-weight: var(--font-weight-black);
3767
3851
  }
3768
3852
 
3853
+ /*
3854
+ ############ _settings-index.scss ############
3855
+ variables and settings
3856
+ */
3769
3857
  /* Generated by Glyphter (http://www.glyphter.com) on Fri Jan 20 2023*/
3770
3858
  @font-face {
3771
3859
  font-family: "utah design system";
@@ -4010,10 +4098,6 @@ Font size variables
4010
4098
  ############ _media-size-vars.scss ############
4011
4099
  Media Sizes - SCSS Variables
4012
4100
  */
4013
- /*
4014
- ############ _settings-index.scss ############
4015
- variables and settings
4016
- */
4017
4101
  .utah-design-system {
4018
4102
  /* color */
4019
4103
  /* ######## Pick these colors to match your desired style ######## */
@@ -4314,6 +4398,23 @@ variables and settings
4314
4398
  border-left: 1px solid var(--gray-3-1-contrast);
4315
4399
  }
4316
4400
 
4401
+ /*
4402
+ BEM standard: Block, Element, Modifier
4403
+ Block: use dashes to separate words:
4404
+ - my-react-component
4405
+ - super-list
4406
+ - cats-r-great
4407
+ Element: use two underscores for elements
4408
+ Elements are children at any level of the Block:
4409
+ - my-react-component__block
4410
+ - super-list__name
4411
+ - super-list__info
4412
+ - cats-r-great__whiskers
4413
+ Modifier: use two dashes for modifiers
4414
+ - my-react-component--alt
4415
+ - super-list--flat
4416
+ - cats-r-great--black
4417
+ */
4317
4418
  .utah-design-system .tooltip__wrapper {
4318
4419
  position: absolute;
4319
4420
  z-index: 110;
@@ -4400,6 +4501,23 @@ variables and settings
4400
4501
  left: -3px;
4401
4502
  }
4402
4503
 
4504
+ /*
4505
+ BEM standard: Block, Element, Modifier
4506
+ Block: use dashes to separate words:
4507
+ - my-react-component
4508
+ - super-list
4509
+ - cats-r-great
4510
+ Element: use two underscores for elements
4511
+ Elements are children at any level of the Block:
4512
+ - my-react-component__block
4513
+ - super-list__name
4514
+ - super-list__info
4515
+ - cats-r-great__whiskers
4516
+ Modifier: use two dashes for modifiers
4517
+ - my-react-component--alt
4518
+ - super-list--flat
4519
+ - cats-r-great--black
4520
+ */
4403
4521
  .utah-design-system .modal-backdrop {
4404
4522
  position: fixed;
4405
4523
  width: 100vw;
@@ -4409,6 +4527,23 @@ variables and settings
4409
4527
  z-index: 1000;
4410
4528
  }
4411
4529
 
4530
+ /*
4531
+ BEM standard: Block, Element, Modifier
4532
+ Block: use dashes to separate words:
4533
+ - my-react-component
4534
+ - super-list
4535
+ - cats-r-great
4536
+ Element: use two underscores for elements
4537
+ Elements are children at any level of the Block:
4538
+ - my-react-component__block
4539
+ - super-list__name
4540
+ - super-list__info
4541
+ - cats-r-great__whiskers
4542
+ Modifier: use two dashes for modifiers
4543
+ - my-react-component--alt
4544
+ - super-list--flat
4545
+ - cats-r-great--black
4546
+ */
4412
4547
  .utah-design-system .search-modal__form {
4413
4548
  position: fixed;
4414
4549
  top: 25%;
@@ -4789,6 +4924,7 @@ variables and settings
4789
4924
  color: var(--primary-color);
4790
4925
  }
4791
4926
 
4927
+ /* ---- Project Components ---- */
4792
4928
  /*
4793
4929
  ############ _popup.scss ############
4794
4930
  */
@@ -4845,12 +4981,9 @@ variables and settings
4845
4981
  }
4846
4982
 
4847
4983
  /*
4848
- ############ _components-index.scss ############
4849
- component specific, BEM (Block, Element, Modifier)
4850
- @media for each component should be contained with the component.
4984
+ ############ _utilities.scss ############
4985
+ utility classes, atomic css
4851
4986
  */
4852
- /* ---- Base Components ---- */
4853
- /* ---- Project Components ---- */
4854
4987
  @keyframes fade-in {
4855
4988
  0% {
4856
4989
  opacity: 0;
@@ -4889,10 +5022,6 @@ component specific, BEM (Block, Element, Modifier)
4889
5022
  transform: scale(1) translateX(-50%);
4890
5023
  }
4891
5024
  }
4892
- /*
4893
- ############ _utilities.scss ############
4894
- utility classes, atomic css
4895
- */
4896
5025
  .content-width {
4897
5026
  width: 100%;
4898
5027
  max-width: var(--content-width);
@@ -5146,6 +5275,10 @@ utility classes, atomic css
5146
5275
  white-space: nowrap;
5147
5276
  }
5148
5277
 
5278
+ /*
5279
+ ############ _super-index.scss ############
5280
+ Overall overrides, @media, themes, etc. that supersede styles higher in the pyramid
5281
+ */
5149
5282
  /*
5150
5283
  PRINT SCSS
5151
5284
  */
@@ -5177,10 +5310,6 @@ PRINT SCSS
5177
5310
  }
5178
5311
  }
5179
5312
  /*
5180
- ############ _super-index.scss ############
5181
- Overall overrides, @media, themes, etc. that supersede styles higher in the pyramid
5182
- */
5183
- /*
5184
5313
  ############ _tip-index.scss ############
5185
5314
  A place to add css temporarily
5186
5315
  NOTE: CSS added this this file should eventually be removed or
@@ -7,7 +7,7 @@ const index = "";
7
7
  const name = "@utahdts/utah-design-system";
8
8
  const description = "Utah Design System React Library";
9
9
  const displayName = "Utah Design System React Library";
10
- const version$1 = "1.1.1";
10
+ const version$1 = "1.2.0";
11
11
  const exports = {
12
12
  ".": {
13
13
  "development-local": "./index.js",
@@ -64,7 +64,7 @@ const bugs = {
64
64
  };
65
65
  const homepage = "https://github.com/utahdts/utah-design-system";
66
66
  const dependencies = {
67
- "@utahdts/utah-design-system-header": "1.1.1",
67
+ "@utahdts/utah-design-system-header": "1.2.0",
68
68
  lodash: "4.17.21",
69
69
  "prop-types": "15.8.1",
70
70
  react: "18.x",
@@ -74,14 +74,14 @@ const dependencies = {
74
74
  uuid: "9.0.0"
75
75
  };
76
76
  const devDependencies = {
77
- "@types/react": "18.2.15",
77
+ "@types/react": "18.2.18",
78
78
  "@types/react-dom": "18.2.7",
79
- "@vitejs/plugin-react": "4.0.3",
80
- "@vitest/coverage-istanbul": "0.33.0",
79
+ "@vitejs/plugin-react": "4.0.4",
80
+ "@vitest/coverage-istanbul": "0.34.1",
81
81
  jsdom: "22.1.0",
82
- sass: "1.63.6",
83
- vite: "4.4.4",
84
- vitest: "0.33.0"
82
+ sass: "1.64.2",
83
+ vite: "4.4.8",
84
+ vitest: "0.34.1"
85
85
  };
86
86
  const type = "module";
87
87
  const packageJson = {
@@ -5102,6 +5102,7 @@ function OnThisPage({ contentRef }) {
5102
5102
  const headersTree = groupElementsByHeaderLevel(headers);
5103
5103
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "on-this-page", children: (headersTree == null ? void 0 : headersTree.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5104
5104
  /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "on-this-page__header", children: "On this page" }),
5105
+ /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "on-this-page__list", children: /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "#", children: "Back to top" }) }) }),
5105
5106
  /* @__PURE__ */ jsxRuntimeExports.jsx(OnThisPageHeadersLevel, { headersLevel: headersTree })
5106
5107
  ] }) : null });
5107
5108
  }
@@ -23,7 +23,7 @@
23
23
  const name = "@utahdts/utah-design-system";
24
24
  const description = "Utah Design System React Library";
25
25
  const displayName = "Utah Design System React Library";
26
- const version$1 = "1.1.1";
26
+ const version$1 = "1.2.0";
27
27
  const exports$1 = {
28
28
  ".": {
29
29
  "development-local": "./index.js",
@@ -80,7 +80,7 @@
80
80
  };
81
81
  const homepage = "https://github.com/utahdts/utah-design-system";
82
82
  const dependencies = {
83
- "@utahdts/utah-design-system-header": "1.1.1",
83
+ "@utahdts/utah-design-system-header": "1.2.0",
84
84
  lodash: "4.17.21",
85
85
  "prop-types": "15.8.1",
86
86
  react: "18.x",
@@ -90,14 +90,14 @@
90
90
  uuid: "9.0.0"
91
91
  };
92
92
  const devDependencies = {
93
- "@types/react": "18.2.15",
93
+ "@types/react": "18.2.18",
94
94
  "@types/react-dom": "18.2.7",
95
- "@vitejs/plugin-react": "4.0.3",
96
- "@vitest/coverage-istanbul": "0.33.0",
95
+ "@vitejs/plugin-react": "4.0.4",
96
+ "@vitest/coverage-istanbul": "0.34.1",
97
97
  jsdom: "22.1.0",
98
- sass: "1.63.6",
99
- vite: "4.4.4",
100
- vitest: "0.33.0"
98
+ sass: "1.64.2",
99
+ vite: "4.4.8",
100
+ vitest: "0.34.1"
101
101
  };
102
102
  const type = "module";
103
103
  const packageJson = {
@@ -5118,6 +5118,7 @@
5118
5118
  const headersTree = groupElementsByHeaderLevel(headers);
5119
5119
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "on-this-page", children: (headersTree == null ? void 0 : headersTree.length) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
5120
5120
  /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "on-this-page__header", children: "On this page" }),
5121
+ /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "on-this-page__list", children: /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: "#", children: "Back to top" }) }) }),
5121
5122
  /* @__PURE__ */ jsxRuntimeExports.jsx(OnThisPageHeadersLevel, { headersLevel: headersTree })
5122
5123
  ] }) : null });
5123
5124
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@utahdts/utah-design-system",
3
3
  "description": "Utah Design System React Library",
4
4
  "displayName": "Utah Design System React Library",
5
- "version": "1.1.1",
5
+ "version": "1.2.0",
6
6
  "exports": {
7
7
  ".": {
8
8
  "development-local": "./index.js",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "homepage": "https://github.com/utahdts/utah-design-system",
61
61
  "dependencies": {
62
- "@utahdts/utah-design-system-header": "1.1.1",
62
+ "@utahdts/utah-design-system-header": "1.2.0",
63
63
  "lodash": "4.17.21",
64
64
  "prop-types": "15.8.1",
65
65
  "react": "18.x",
@@ -69,14 +69,14 @@
69
69
  "uuid": "9.0.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@types/react": "18.2.15",
72
+ "@types/react": "18.2.18",
73
73
  "@types/react-dom": "18.2.7",
74
- "@vitejs/plugin-react": "4.0.3",
75
- "@vitest/coverage-istanbul": "0.33.0",
74
+ "@vitejs/plugin-react": "4.0.4",
75
+ "@vitest/coverage-istanbul": "0.34.1",
76
76
  "jsdom": "22.1.0",
77
- "sass": "1.63.6",
78
- "vite": "4.4.4",
79
- "vitest": "0.33.0"
77
+ "sass": "1.64.2",
78
+ "vite": "4.4.8",
79
+ "vitest": "0.34.1"
80
80
  },
81
81
  "type": "module"
82
82
  }
@@ -19,6 +19,12 @@ function OnThisPage({ contentRef }) {
19
19
  ? (
20
20
  <>
21
21
  <h2 className="on-this-page__header">On this page</h2>
22
+ <ul className="on-this-page__list">
23
+ <li>
24
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
25
+ <a href="#">Back to top</a>
26
+ </li>
27
+ </ul>
22
28
  <OnThisPageHeadersLevel headersLevel={headersTree} />
23
29
  </>
24
30
  )