@clayui/css 3.45.0 → 3.48.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.
Files changed (75) hide show
  1. package/README.md +23 -69
  2. package/lib/css/atlas.css +265 -97
  3. package/lib/css/atlas.css.map +1 -1
  4. package/lib/css/base.css +219 -79
  5. package/lib/css/base.css.map +1 -1
  6. package/lib/css/bootstrap.css.map +1 -1
  7. package/lib/css/cadmin.css +182 -76
  8. package/lib/css/cadmin.css.map +1 -1
  9. package/lib/images/icons/export.svg +11 -0
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/package.json +2 -2
  12. package/src/images/icons/export.svg +11 -0
  13. package/src/scss/_cadmin-variables.scss +2 -0
  14. package/src/scss/_variables.scss +1 -0
  15. package/src/scss/atlas/variables/_buttons.scss +3 -0
  16. package/src/scss/atlas/variables/_cards.scss +12 -0
  17. package/src/scss/atlas/variables/_globals.scss +42 -13
  18. package/src/scss/atlas/variables/_list-group.scss +28 -12
  19. package/src/scss/atlas-variables.scss +2 -0
  20. package/src/scss/atlas.scss +2 -0
  21. package/src/scss/base-variables.scss +2 -0
  22. package/src/scss/base.scss +2 -0
  23. package/src/scss/cadmin/_variables.scss +1 -0
  24. package/src/scss/cadmin/components/_aspect-ratio.scss +25 -38
  25. package/src/scss/cadmin/components/_cards.scss +10 -120
  26. package/src/scss/cadmin/components/_empty-state.scss +36 -0
  27. package/src/scss/cadmin/components/_links.scss +0 -8
  28. package/src/scss/cadmin/components/_treeview.scss +58 -1
  29. package/src/scss/cadmin/components/_type.scss +27 -42
  30. package/src/scss/cadmin/components/_utilities-functional-important.scss +35 -15
  31. package/src/scss/cadmin/variables/_aspect-ratio.scss +26 -0
  32. package/src/scss/cadmin/variables/_cards.scss +164 -1
  33. package/src/scss/cadmin/variables/_empty-state.scss +23 -0
  34. package/src/scss/cadmin/variables/_globals.scss +173 -11
  35. package/src/scss/cadmin/variables/_links.scss +14 -0
  36. package/src/scss/cadmin/variables/_list-group.scss +32 -16
  37. package/src/scss/cadmin/variables/_sidebar.scss +1 -1
  38. package/src/scss/cadmin/variables/_treeview.scss +17 -1
  39. package/src/scss/cadmin/variables/_utilities.scss +42 -0
  40. package/src/scss/cadmin.scss +2 -0
  41. package/src/scss/components/_aspect-ratio.scss +25 -38
  42. package/src/scss/components/_cards.scss +28 -122
  43. package/src/scss/components/_custom-forms.scss +2 -2
  44. package/src/scss/components/_dropdowns.scss +0 -28
  45. package/src/scss/components/_empty-state.scss +30 -0
  46. package/src/scss/components/_links.scss +1 -9
  47. package/src/scss/components/_multi-step-nav.scss +11 -5
  48. package/src/scss/components/_tables.scss +0 -8
  49. package/src/scss/components/_treeview.scss +58 -1
  50. package/src/scss/components/_type.scss +27 -41
  51. package/src/scss/components/_utilities-functional-important.scss +35 -15
  52. package/src/scss/functions/_lx-icons-generated.scss +2 -0
  53. package/src/scss/mixins/_alerts.scss +180 -113
  54. package/src/scss/mixins/_buttons.scss +4 -0
  55. package/src/scss/mixins/_cards.scss +59 -25
  56. package/src/scss/mixins/_dropdown-menu.scss +17 -0
  57. package/src/scss/mixins/_grid.scss +29 -0
  58. package/src/scss/mixins/_links.scss +22 -2
  59. package/src/scss/variables/_aspect-ratio.scss +26 -0
  60. package/src/scss/variables/_buttons.scss +6 -0
  61. package/src/scss/variables/_cards.scss +158 -4
  62. package/src/scss/variables/_custom-forms.scss +19 -4
  63. package/src/scss/variables/_dropdowns.scss +45 -0
  64. package/src/scss/variables/_empty-state.scss +23 -0
  65. package/src/scss/variables/_globals.scss +172 -11
  66. package/src/scss/variables/_links.scss +21 -3
  67. package/src/scss/variables/_list-group.scss +22 -12
  68. package/src/scss/variables/_multi-step-nav.scss +6 -0
  69. package/src/scss/variables/_range.scss +4 -2
  70. package/src/scss/variables/_sidebar.scss +3 -3
  71. package/src/scss/variables/_stickers.scss +3 -3
  72. package/src/scss/variables/_tables.scss +14 -0
  73. package/src/scss/variables/_toggle-switch.scss +14 -2
  74. package/src/scss/variables/_treeview.scss +21 -1
  75. package/src/scss/variables/_utilities.scss +42 -0
package/README.md CHANGED
@@ -1,89 +1,43 @@
1
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
2
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3
- ### Jump to Section
1
+ ## Jump to Section
4
2
 
5
3
  - [About](#about)
6
- - [Building](#building)
7
- - [Clone the repo](#clone-the-repo)
8
- - [Install Node.js and NPM](#install-nodejs-and-npm)
9
- - [Install the NPM modules](#install-the-npm-modules)
10
- - [Modify files in src/](#modify-files-in-src)
11
- - [Build the static files](#build-the-static-files)
12
- - [View the files](#view-the-files)
13
- - [File Heading Options](#file-heading-options)
14
- - [Available Build Tasks](#available-build-tasks)
15
-
16
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
4
+ - [Adding New SVG Icons](#adding-new-svg-icons)
17
5
 
18
6
  ## About
7
+
19
8
  Clay is Liferay's web implementation of the Lexicon Design Language. It is built with HTML, CSS, and Javascript with [Bootstrap](https://getbootstrap.com/docs/4.1/getting-started/introduction/) as a foundation.
20
9
 
21
10
  You can view the various components on [the Clay site](http://clayui.com).
22
11
 
23
- <!-- TODO: provide link to Lexicon site for documentation on design patterns -->
24
-
25
- ## Building
26
- If you would like to contribute, or make changes on your system you need to do the following:
27
-
28
- ### Clone the repo
29
- Clone the repo to your computer
30
-
31
- ### Install Node.js (v4.6.0 LTS) and NPM
32
- If you don't already have it installed. You can find more info here: http://nodejs.org/
33
- Node and NPM come bundled together, so you only need to install one package.
34
-
35
- ### Install the NPM modules
36
- Run `npm install` inside of the `packages/clay-css` directory
37
-
38
- ### Modify files in src/
39
- The files are generated from the `src/` directory, however, most of the files you'd be interested in changing are in `src/content/`. Files can be either HTML (`.html`) or Markdown (`.md`).
40
- Every file in `src/content/` has a heading at the top in YAML format that looks something like:
41
-
42
-
43
- ---
44
- title: Title of the Page
45
- ---
46
-
47
- This section has a couple of options that can be leveraged for different purposes. Those will be covered below.
48
-
49
- ### Build the static files
50
- Run `gulp build` to generate the static files.
51
-
52
- ### View the files
53
- The generated files are placed into the `build/` directory.
54
- Sass files in the `.scss` format are generated to CSS, Markdown files with the extension of `.md` are generated to HTML, and HTML files have one bit of processing applied, which is that HTML inside of triple ticks is escaped, like so:
55
-
56
- ```
57
- <div>Foo</div>
58
- ```
59
-
60
- ### File Heading Options
61
- There are a couple of properties you can add to the headings of files, only one of which is required:
12
+ ## Adding New SVG Icons
62
13
 
63
- `title:`: **(Required)** This is used for the title of the page in the heading and in the navigation sidebar
14
+ 1) The copyright license should be added at the top of the new SVG icon file using the format:
64
15
 
65
- `navIndex:`: The navigation is sorted alphabetically by default, but if you pass a `navIndex:` property, it will manually sort the item into that position.
66
- The property is any number, with `0` as the first position, but you can also pass in a keyword of `last` to force an item to the end.
16
+ ```
17
+ <!--
18
+ * SPDX-FileCopyrightText: © 2022 Liferay, Inc. <https://liferay.com>
19
+ * SPDX-FileCopyrightText: © 2022 Contributors to the project Clay <https://github.com/liferay/clay/graphs/contributors>
20
+ *
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ -->
23
+ ```
67
24
 
68
- `section:`: If you want to group multiple files into sections, in each of those files, pass the same title to the `section:` property. That title will be used for the section heading, and the files will be sorted in there. The `navIndex:` property works inside of sections as well.
25
+ See https://liferay.dev/blogs/-/blogs/how-and-why-to-properly-write-copyright-statements-in-your-code#tldr for more details.
69
26
 
70
- ### Available Build Tasks
71
- You can pass these options when running `gulp`.
27
+ 2) The `<svg></svg>` element should only have the attributes `xmlns` and `viewBox`.
72
28
 
73
- `build`: This is the default task, so running just `gulp` will fire off the build task.
74
- This will generate all of the HTML/CSS/etc into the `build/` directory.
29
+ 3) Remove any `fill` and `id` attributes from the SVG elements.
75
30
 
76
- `watch`: Because running a script after every change can get tedious, run `gulp watch` to rebuild the files automatically as you change files.
31
+ 4) Remove any `<style></style>` tags and the classes / ids that are referenced by it.
77
32
 
78
- `serve`: Starts a local server on port 3000 and also runs the watch task.
33
+ 5) The class `lexicon-icon-body` is deprecated and is no longer being included in newer icons. This class allowed the background color of an icon to be modified using the property `fill`. We shouldn't use this class.
79
34
 
80
- ### Updating Bootstrap Version and Dependencies
81
- Bootstrap can be updated or downgraded by using the command:
35
+ 6) The class `lexicon-icon-outline` is a marker on each SVG element (e.g., `path`, `circle`, `rect`). It provides another class to use as a selector to apply CSS changes to an icon. This class should be included on all SVG elements.
82
36
 
83
- `npm install --save-dev --save-exact bootstrap@the_version`
37
+ 7) Run `yarn compile` and include the auto generated file `src/scss/functions/_lx-icons-generated.scss` in your commit.
84
38
 
85
- Popper.js can be updated or downgraded by using:
39
+ 8) In the file, `clay/clayui.com/plugins/gatsby-plugin-clay-css-tasks/clay-icon-aliases.js`, find `iconsData` and add the icon aliases if needed.
86
40
 
87
- `npm install --save-dev --save-exact popper.js@the_version`
41
+ 9) In the `clayui.com` directory run `yarn develop` and check to see if the icon shows up in the icon section.
88
42
 
89
- Then run `gulp build` or `gulp-serve` to compile Clay CSS with the new version
43
+ 10) Include the files `static/images/icons/icons.svg`, `static/js/icons-autogenerated.json`, and `static/js/flags-autogenerated.json` to the commit. Some of these files might not show up in git's "Changes not staged for commit:" if aliases or flags have not been added.