@dynamic-framework/ui-react 2.3.0 → 2.4.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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "2.3.0",
6
+ "version": "2.4.0",
7
7
  "description": "React Dynamic Framework",
8
8
  "license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/LICENSE.md",
9
9
  "repository": {
@@ -60,7 +60,7 @@
60
60
  "clean": "rimraf dist-transpiled && rimraf dist",
61
61
  "compile": "tsc -p . && rollup -c rollup.config.mjs",
62
62
  "storybook": "storybook dev -p 6006",
63
- "build:storybook": "storybook build --docs -o docs",
63
+ "build:storybook": "storybook build --docs -o docs && node scripts/generate-props.mjs",
64
64
  "eslint": "npm run eslint:src && npm run eslint:stories && npm run eslint:test",
65
65
  "eslint:src": "eslint 'src/**/*.ts' 'src/**/*.tsx' --ignore-pattern '**/*.spec.tsx'",
66
66
  "eslint:stories": "eslint stories/**/*.stories.tsx",
@@ -152,6 +152,7 @@
152
152
  "playwright": "^1.58.2",
153
153
  "postcss-cli": "~10.1.0",
154
154
  "react": "~19.2.1",
155
+ "react-docgen-typescript": "^2.4.0",
155
156
  "react-dom": "~19.2.1",
156
157
  "react-hot-toast": "~2.6.0",
157
158
  "react-i18next": "~16.2.4",
@@ -38,18 +38,6 @@ $utilities: map-merge(
38
38
  )
39
39
  )
40
40
  ),
41
- "shadow": map-merge(
42
- map-get($utilities, "shadow"),
43
- (
44
- responsive: true,
45
- values: (
46
- null: var(--#{$prefix}box-shadow),
47
- sm: var(--#{$prefix}box-shadow-sm),
48
- lg: var(--#{$prefix}box-shadow-lg),
49
- none: none
50
- )
51
- )
52
- ),
53
41
  "text-opacity": map-merge(
54
42
  map-get($utilities, "text-opacity"),
55
43
  (
@@ -410,10 +410,10 @@ $dark-text-emphasis: var(--#{$prefix}gray-25) !default;
410
410
  // scss-docs-start theme-bg-subtle-variables
411
411
  $primary-bg-subtle: var(--#{$prefix}primary-100) !default;
412
412
  $secondary-bg-subtle: var(--#{$prefix}secondary-100) !default;
413
- $success-bg-subtle: var(--#{$prefix}success-100) !default;
414
- $info-bg-subtle: var(--#{$prefix}info-100) !default;
415
- $warning-bg-subtle: var(--#{$prefix}warning-100) !default;
416
- $danger-bg-subtle: var(--#{$prefix}danger-100) !default;
413
+ $success-bg-subtle: var(--#{$prefix}success-25) !default;
414
+ $info-bg-subtle: var(--#{$prefix}info-25) !default;
415
+ $warning-bg-subtle: var(--#{$prefix}warning-25) !default;
416
+ $danger-bg-subtle: var(--#{$prefix}danger-25) !default;
417
417
  $light-bg-subtle: var(--#{$prefix}gray-100) !default;
418
418
  $dark-bg-subtle: var(--#{$prefix}gray-400) !default;
419
419
  // scss-docs-end theme-bg-subtle-variables
@@ -1,13 +1,13 @@
1
1
  .d-box {
2
- --#{$prefix}box-bg: #{var(--#{$prefix}white)};
3
- --#{$prefix}box-border: 0;
4
- --#{$prefix}box-border-radius: #{var(--#{$prefix}border-radius)};
5
- --#{$prefix}box-padding: #{var(--#{$prefix}ref-spacer-4)};
6
- --#{$prefix}box-shadow: #{var(--#{$prefix}box-shadow-lg)};
7
- padding: var(--#{$prefix}box-padding);
2
+ --#{$prefix}box-component-bg: #{var(--#{$prefix}white)};
3
+ --#{$prefix}box-component-border: 0;
4
+ --#{$prefix}box-component-border-radius: #{var(--#{$prefix}border-radius)};
5
+ --#{$prefix}box-component-padding: #{var(--#{$prefix}ref-spacer-4)};
6
+ --#{$prefix}box-component-shadow: #{var(--#{$prefix}box-shadow-lg)};
8
7
 
9
- background-color: var(--#{$prefix}box-bg);
10
- border: var(--#{$prefix}box-border);
11
- border-radius: var(--#{$prefix}box-border-radius);
12
- box-shadow: var(--#{$prefix}box-shadow);
8
+ padding: var(--#{$prefix}box-component-padding);
9
+ background-color: var(--#{$prefix}box-component-bg);
10
+ border: var(--#{$prefix}box-component-border);
11
+ border-radius: var(--#{$prefix}box-component-border-radius);
12
+ box-shadow: var(--#{$prefix}box-component-shadow);
13
13
  }
@@ -63,17 +63,6 @@
63
63
  --#{$prefix}#{$color}-text-emphasis: #{$value};
64
64
  }
65
65
 
66
- $theme-colors-bg-subtle: (
67
- "primary": $primary-bg-subtle,
68
- "secondary": $secondary-bg-subtle,
69
- "success": $green-25,
70
- "info": $blue-25,
71
- "warning": $yellow-25,
72
- "danger": $red-25,
73
- "light": $light-bg-subtle,
74
- "dark": $dark-bg-subtle,
75
- );
76
-
77
66
  @each $color, $value in $theme-colors-bg-subtle {
78
67
  --#{$prefix}#{$color}-bg-subtle: #{$value};
79
68
  }
@@ -355,7 +344,7 @@
355
344
  --#{$prefix}default-accordion-body-padding-x: var(--#{$prefix}default-accordion-padding-x);
356
345
  --#{$prefix}default-accordion-body-padding-y: var(--#{$prefix}default-accordion-padding-y);
357
346
  --#{$prefix}default-accordion-active-color: var(--#{$prefix}body-color);
358
- --#{$prefix}default-accordion-active-bg: var(--#{$prefix}secondary-soft);
347
+ --#{$prefix}default-accordion-active-bg: var(--#{$prefix}secondary-50);
359
348
  }
360
349
 
361
350
  @if $enable-dark-mode {