@db-ux/core-foundations 4.5.4-table-c758ae7 → 4.5.4-tailwind-inline-5d37a00
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/agent/_instructions.md +49 -0
- package/assets/icons/LICENCES.json +0 -12
- package/assets/icons/fonts/all/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/default_64/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_12/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_14/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_16/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_20/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_24/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_28/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_32/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_48/db-ux.woff2 +0 -0
- package/assets/icons/fonts/filled_64/db-ux.woff2 +0 -0
- package/build/all-icons.js +41 -1
- package/build/base-icon-types.d.ts +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.js +3 -3
- package/build/styles/absolute.css +2 -2
- package/build/styles/colors/_default-color-mappings.scss +2 -2
- package/build/styles/defaults/default-icons.css +1 -1
- package/build/styles/defaults/default-required.css +1 -1
- package/build/styles/defaults/default-theme.css +1 -1
- package/build/styles/index.css +2 -2
- package/build/styles/relative.css +2 -2
- package/build/styles/rollup.css +2 -2
- package/build/styles/webpack.css +2 -2
- package/build/tailwind/theme/colors.css +1 -2919
- package/build/tailwind/theme/colors.scss +1 -10
- package/build/tailwind/theme/dimensions.css +77 -160
- package/package.json +2 -2
- package/assets/icons/arrows_vertical.svg +0 -1
- package/assets/icons/more_vertical.svg +0 -1
- package/build/tailwind/theme/_variables.scss +0 -77
- package/build/tailwind/theme/dimensions.scss +0 -17
package/agent/_instructions.md
CHANGED
|
@@ -53,3 +53,52 @@ If you use tailwind follow those rules as well:
|
|
|
53
53
|
|
|
54
54
|
- Don't use values like `p-4` or `m-[16px]`; use `p-fix-xs` or `m-fix-md` instead.
|
|
55
55
|
- Never use something like `font-['DB_Neo_Screen_Head']` and `leading-[48px]` instead use `text-head-xx` class, where `-xx` can be a t-shirt size from `3xs` to `3xl`; If it has a `font-wight:300;` use `text-head-light-xx` instead.
|
|
56
|
+
|
|
57
|
+
## Stylelint Rules (Common CSS/SCSS Mistakes)
|
|
58
|
+
|
|
59
|
+
The `@db-ux/core-stylelint` plugin enforces design token usage. Never use raw `px`, `rem`, or hardcoded color values for the following properties:
|
|
60
|
+
|
|
61
|
+
### Spacings (`db-ux/use-spacings`)
|
|
62
|
+
|
|
63
|
+
- Applies to: `margin`, `padding`, `gap` (and all sub-properties like `margin-top`, `padding-inline`, etc.)
|
|
64
|
+
- Use `var(--db-spacing-fixed-xx)` or `var(--db-spacing-responsive-xx)` instead of `px`/`rem` values
|
|
65
|
+
- `var(--db-sizing-xx)`, `%`, `vw`, `vh` are also allowed
|
|
66
|
+
- Allowed exact values: `0px`, `0`, `auto`, `inherit`, `initial`, `unset`
|
|
67
|
+
- ❌ `margin: 20px;` / `padding: 0.5rem;` / `margin-top: 8px;`
|
|
68
|
+
- ✅ `margin: var(--db-spacing-fixed-md);` / `padding: var(--db-spacing-responsive-lg);`
|
|
69
|
+
|
|
70
|
+
### Sizing (`db-ux/use-sizing`)
|
|
71
|
+
|
|
72
|
+
- Applies to: `width`, `height`, `min-width`, `min-height`, `max-width`, `max-height`, `block-size`, `inline-size`
|
|
73
|
+
- Use `var(--db-sizing-xx)`, `var(--db-screen-xx)`, `var(--db-container-xx)`, `%`, `lh`, `ch`, `vw`, `vh` instead of `px`/`rem`
|
|
74
|
+
- Additional allowed values: `fit-content`, `max-content`, `min-content`, `none`, `revert`, `revert-layer`
|
|
75
|
+
- ❌ `width: 100px;` / `height: 50px;` / `block-size: 200px;`
|
|
76
|
+
- ✅ `width: var(--db-sizing-md);` / `height: 100%;` / `block-size: var(--db-screen-sm);`
|
|
77
|
+
|
|
78
|
+
### Border Radius (`db-ux/use-border-radius`)
|
|
79
|
+
|
|
80
|
+
- Applies to: all `border-*-radius` properties
|
|
81
|
+
- Use `var(--db-border-radius-xx)` instead of `px`/`rem`
|
|
82
|
+
- ❌ `border-radius: 4px;` / `border-top-left-radius: 0.5rem;`
|
|
83
|
+
- ✅ `border-radius: var(--db-border-radius-md);`
|
|
84
|
+
|
|
85
|
+
### Border Width (`db-ux/use-border-width`)
|
|
86
|
+
|
|
87
|
+
- Applies to: `border`, `border-top`, `border-right`, `border-bottom`, `border-left`, `border-block`, `border-block-start`, `border-block-end`, `border-inline`, `border-inline-start`, `border-inline-end`, and all `border-*-width` properties
|
|
88
|
+
- Use `var(--db-border-width-xx)` instead of `px`/`rem` for the width part
|
|
89
|
+
- ❌ `border: 1px solid transparent;` / `border-top: 2px solid red;`
|
|
90
|
+
- ✅ `border: var(--db-border-width-sm) solid transparent;`
|
|
91
|
+
|
|
92
|
+
### Border Color (`db-ux/use-border-color`)
|
|
93
|
+
|
|
94
|
+
- Applies to: same border properties as border-width, plus all `border-*-color` properties
|
|
95
|
+
- Use `var(--db-adaptive-on-bg-basic-emphasis-xx-default)` or `var(--db-adaptive-on-bg-inverted)` for border colors
|
|
96
|
+
- `transparent` and `currentcolor` are also allowed
|
|
97
|
+
- ❌ `border: 1px solid red;` / `border-color: #ff0;` / `border-top: 1px solid blue;`
|
|
98
|
+
- ✅ `border: var(--db-border-width-sm) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);`
|
|
99
|
+
|
|
100
|
+
### General Notes
|
|
101
|
+
|
|
102
|
+
- CSS custom properties (`--my-var`) and SCSS variables (`$my-var`) are always allowed as values
|
|
103
|
+
- `0px`, `0`, `auto`, `inherit`, `initial`, `unset` are always allowed
|
|
104
|
+
- `calc()` expressions can be allowed via config option `allowCalc: true`
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
[
|
|
2
|
-
{
|
|
3
|
-
"name": "arrows_vertical.svg",
|
|
4
|
-
"type": "lucide",
|
|
5
|
-
"licence": "https://lucide.dev/license#lucide-license",
|
|
6
|
-
"origin": "arrow-down-up"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"name": "more_vertical.svg",
|
|
10
|
-
"type": "lucide",
|
|
11
|
-
"licence": "https://lucide.dev/license#lucide-license",
|
|
12
|
-
"origin": "ellipsis-vertical"
|
|
13
|
-
},
|
|
14
2
|
{
|
|
15
3
|
"name": "arrow_down.svg",
|
|
16
4
|
"type": "lucide",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build/all-icons.js
CHANGED
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
/* This file was generated */
|
|
2
|
-
export const ALL_ICONS = [
|
|
2
|
+
export const ALL_ICONS = [
|
|
3
|
+
'arrow_down',
|
|
4
|
+
'arrow_left',
|
|
5
|
+
'arrow_right',
|
|
6
|
+
'arrow_up',
|
|
7
|
+
'arrow_up_right',
|
|
8
|
+
'brand',
|
|
9
|
+
'calendar',
|
|
10
|
+
'chat',
|
|
11
|
+
'check',
|
|
12
|
+
'check_circle',
|
|
13
|
+
'chevron_down',
|
|
14
|
+
'chevron_left',
|
|
15
|
+
'chevron_right',
|
|
16
|
+
'chevron_up',
|
|
17
|
+
'circle',
|
|
18
|
+
'circle_small',
|
|
19
|
+
'circular_arrows',
|
|
20
|
+
'clock',
|
|
21
|
+
'copy',
|
|
22
|
+
'cross',
|
|
23
|
+
'cross_circle',
|
|
24
|
+
'double_chevron_down',
|
|
25
|
+
'double_chevron_left',
|
|
26
|
+
'double_chevron_right',
|
|
27
|
+
'double_chevron_up',
|
|
28
|
+
'exclamation_mark_circle',
|
|
29
|
+
'exclamation_mark_triangle',
|
|
30
|
+
'eye',
|
|
31
|
+
'eye_disabled',
|
|
32
|
+
'house',
|
|
33
|
+
'information_circle',
|
|
34
|
+
'magnifying_glass',
|
|
35
|
+
'menu',
|
|
36
|
+
'minus',
|
|
37
|
+
'moon',
|
|
38
|
+
'plus',
|
|
39
|
+
'resize_handle_corner',
|
|
40
|
+
'sun',
|
|
41
|
+
'x_placeholder'
|
|
42
|
+
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type BaseIconTypes =
|
|
1
|
+
export type BaseIconTypes = 'arrow_down' | 'arrow_left' | 'arrow_right' | 'arrow_up' | 'arrow_up_right' | 'brand' | 'calendar' | 'chat' | 'check' | 'check_circle' | 'chevron_down' | 'chevron_left' | 'chevron_right' | 'chevron_up' | 'circle' | 'circle_small' | 'circular_arrows' | 'clock' | 'copy' | 'cross' | 'cross_circle' | 'double_chevron_down' | 'double_chevron_left' | 'double_chevron_right' | 'double_chevron_up' | 'exclamation_mark_circle' | 'exclamation_mark_triangle' | 'eye' | 'eye_disabled' | 'house' | 'information_circle' | 'magnifying_glass' | 'menu' | 'minus' | 'moon' | 'plus' | 'resize_handle_corner' | 'sun' | 'x_placeholder';
|
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './all-icons.js';
|
|
2
|
+
export * from './base-icon-types.js';
|
|
3
|
+
export * from './icon-types.js';
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './all-icons.js';
|
|
2
|
+
export * from './base-icon-types.js';
|
|
3
|
+
export * from './icon-types.js';
|
|
@@ -6801,8 +6801,8 @@ blockquote:not([class]) {
|
|
|
6801
6801
|
var(--db-neutral-on-origin-dark-default)
|
|
6802
6802
|
);
|
|
6803
6803
|
--db-neutral-on-bg-basic-emphasis-50-default: light-dark(
|
|
6804
|
-
var(--db-neutral-
|
|
6805
|
-
var(--db-neutral-
|
|
6804
|
+
var(--db-neutral-12),
|
|
6805
|
+
var(--db-neutral-3)
|
|
6806
6806
|
);
|
|
6807
6807
|
--db-neutral-on-bg-basic-emphasis-60-default: light-dark(
|
|
6808
6808
|
var(--db-neutral-10),
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
var(--db-neutral-on-origin-dark-default)
|
|
19
19
|
);
|
|
20
20
|
--db-neutral-on-bg-basic-emphasis-50-default: light-dark(
|
|
21
|
-
var(--db-neutral-
|
|
22
|
-
var(--db-neutral-
|
|
21
|
+
var(--db-neutral-12),
|
|
22
|
+
var(--db-neutral-3)
|
|
23
23
|
);
|
|
24
24
|
--db-neutral-on-bg-basic-emphasis-60-default: light-dark(
|
|
25
25
|
var(--db-neutral-10),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{color:var(--db-icon-color,inherit);display:inline-block;font-family:var(--db-icon-font-family,var(--db-icon-default-font-family,"db-ux-default","icon-font-fallback"))!important;font-size:var(--db-icon-font-size,1.5rem);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-variant:normal;font-weight:var(--db-icon-font-weight,normal);line-height:1;speak:none;speak:never;aspect-ratio:1;block-size:var(--db-icon-font-size,1.5rem);content:var(--db-icon,attr(data-icon));flex-shrink:0;overflow:clip;text-transform:none;vertical-align:var(--db-icon-vertical-align,middle)}@supports (content:""/""){[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{content:var(--db-icon,attr(data-icon))/""}}@media aural{[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{content:none}}@media speech{[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{content:none}}[data-icon-leading]:is(span),[data-icon-trailing]:is(span),[data-icon]:is(span){vertical-align:
|
|
1
|
+
@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}@layer variables{}[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{color:var(--db-icon-color,inherit);display:inline-block;font-family:var(--db-icon-font-family,var(--db-icon-default-font-family,"db-ux-default","icon-font-fallback"))!important;font-size:var(--db-icon-font-size,1.5rem);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-variant:normal;font-weight:var(--db-icon-font-weight,normal);line-height:1;speak:none;speak:never;aspect-ratio:1;block-size:var(--db-icon-font-size,1.5rem);content:var(--db-icon,attr(data-icon));flex-shrink:0;overflow:clip;text-transform:none;vertical-align:var(--db-icon-vertical-align,middle)}@supports (content:""/""){[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{content:var(--db-icon,attr(data-icon))/""}}@media aural{[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{content:none}}@media speech{[data-icon-leading]:before,[data-icon-trailing]:after,[data-icon]:before{content:none}}[data-icon-leading]:is(span),[data-icon-trailing]:is(span),[data-icon]:is(span){vertical-align:initial}[data-icon-leading]:is(span):not([hidden]),[data-icon-trailing]:is(span):not([hidden]),[data-icon]:is(span):not([hidden]){display:inline-flex}[data-icon-leading]:before,[data-icon]:before{margin-inline-end:var(--db-icon-margin-end,var(--db-spacing-fixed-xs))}[data-icon-leading=none]:before,[data-icon=none]:before,[data-show-icon-leading=false]:before,[data-show-icon=false]:before{content:none}[data-icon-trailing]:after{content:var(--db-icon-trailing,attr(data-icon-trailing));margin-inline-start:var(--db-icon-margin-start,var(--db-spacing-fixed-xs))}@supports (content:""/""){[data-icon-trailing]:after{content:var(--db-icon-trailing,attr(data-icon-trailing))/""}}[data-icon-trailing=none]:after,[data-show-icon-trailing=false]:after{content:none}.is-icon-text-replace[data-icon-leading],.is-icon-text-replace[data-icon]{font-size:0!important}.is-icon-text-replace[data-icon-leading]:before,.is-icon-text-replace[data-icon]:before{--db-icon-margin-end:0}.is-icon-text-replace[data-icon-trailing]{font-size:0!important}.is-icon-text-replace[data-icon-trailing]:after{--db-icon-margin-start:0}
|