@bookklik/senangstart-css 0.1.8 → 0.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/README.md +38 -0
- package/dist/senangstart-css.js +2269 -1955
- package/dist/senangstart-css.min.js +141 -1479
- package/docs/.vitepress/config.js +2 -0
- package/docs/guide/responsive.md +25 -0
- package/docs/index.md +1 -1
- package/docs/ms/guide/responsive.md +25 -0
- package/docs/ms/index.md +1 -1
- package/docs/ms/reference/breakpoints.md +23 -0
- package/docs/ms/reference/layout/align-content.md +57 -4
- package/docs/ms/reference/layout/align-items.md +81 -4
- package/docs/ms/reference/layout/align-self.md +25 -4
- package/docs/ms/reference/layout/aspect-ratio.md +27 -8
- package/docs/ms/reference/layout/border-collapse.md +81 -4
- package/docs/ms/reference/layout/border-spacing.md +43 -8
- package/docs/ms/reference/layout/box-sizing.md +21 -4
- package/docs/ms/reference/layout/caption-side.md +69 -4
- package/docs/ms/reference/layout/columns.md +21 -4
- package/docs/ms/reference/layout/container.md +21 -4
- package/docs/ms/reference/layout/display.md +39 -7
- package/docs/ms/reference/layout/flex-basis.md +29 -8
- package/docs/ms/reference/layout/flex-direction.md +81 -4
- package/docs/ms/reference/layout/flex-items.md +51 -4
- package/docs/ms/reference/layout/flex-wrap.md +55 -4
- package/docs/ms/reference/layout/flex.md +54 -7
- package/docs/ms/reference/layout/float-clear.md +23 -4
- package/docs/ms/reference/layout/grid-auto-flow.md +57 -4
- package/docs/ms/reference/layout/grid-auto-sizing.md +25 -4
- package/docs/ms/reference/layout/grid-column-span.md +59 -4
- package/docs/ms/reference/layout/grid-columns.md +61 -4
- package/docs/ms/reference/layout/grid-row-span.md +29 -4
- package/docs/ms/reference/layout/grid-rows.md +31 -4
- package/docs/ms/reference/layout/inset.md +56 -7
- package/docs/ms/reference/layout/isolation.md +21 -4
- package/docs/ms/reference/layout/justify-content.md +81 -4
- package/docs/ms/reference/layout/justify-items.md +25 -4
- package/docs/ms/reference/layout/justify-self.md +25 -4
- package/docs/ms/reference/layout/object-fit.md +57 -4
- package/docs/ms/reference/layout/object-position.md +29 -8
- package/docs/ms/reference/layout/order.md +53 -4
- package/docs/ms/reference/layout/overflow.md +45 -4
- package/docs/ms/reference/layout/overscroll.md +21 -4
- package/docs/ms/reference/layout/place-content.md +23 -4
- package/docs/ms/reference/layout/place-items.md +25 -4
- package/docs/ms/reference/layout/place-self.md +25 -4
- package/docs/ms/reference/layout/position.md +47 -4
- package/docs/ms/reference/layout/shorthand-alignment.md +47 -4
- package/docs/ms/reference/layout/table-layout.md +69 -4
- package/docs/ms/reference/layout/visibility.md +25 -4
- package/docs/ms/reference/layout/z-index.md +27 -4
- package/docs/ms/reference/space/gap.md +71 -7
- package/docs/ms/reference/space/height.md +61 -7
- package/docs/ms/reference/space/margin.md +61 -7
- package/docs/ms/reference/space/padding.md +65 -7
- package/docs/ms/reference/space/width.md +61 -7
- package/docs/ms/reference/visual/accent-color.md +29 -8
- package/docs/ms/reference/visual/animation-builtin.md +29 -8
- package/docs/ms/reference/visual/animation-delay.md +25 -8
- package/docs/ms/reference/visual/animation-direction.md +25 -4
- package/docs/ms/reference/visual/animation-duration.md +27 -8
- package/docs/ms/reference/visual/animation-fill.md +25 -4
- package/docs/ms/reference/visual/animation-iteration.md +23 -4
- package/docs/ms/reference/visual/animation-play.md +23 -4
- package/docs/ms/reference/visual/appearance.md +23 -4
- package/docs/ms/reference/visual/backdrop-blur.md +29 -8
- package/docs/ms/reference/visual/backdrop-brightness.md +29 -8
- package/docs/ms/reference/visual/backdrop-contrast.md +29 -8
- package/docs/ms/reference/visual/backdrop-grayscale.md +27 -8
- package/docs/ms/reference/visual/backdrop-hue-rotate.md +29 -8
- package/docs/ms/reference/visual/backdrop-invert.md +27 -8
- package/docs/ms/reference/visual/backdrop-opacity.md +29 -8
- package/docs/ms/reference/visual/backdrop-saturate.md +29 -8
- package/docs/ms/reference/visual/backdrop-sepia.md +27 -8
- package/docs/ms/reference/visual/background-attachment.md +23 -4
- package/docs/ms/reference/visual/background-blend-mode.md +25 -4
- package/docs/ms/reference/visual/background-clip.md +21 -4
- package/docs/ms/reference/visual/background-color.md +33 -8
- package/docs/ms/reference/visual/background-image.md +27 -8
- package/docs/ms/reference/visual/background-origin.md +25 -4
- package/docs/ms/reference/visual/background-position.md +29 -8
- package/docs/ms/reference/visual/background-repeat.md +25 -4
- package/docs/ms/reference/visual/background-size.md +29 -8
- package/docs/ms/reference/visual/blend-modes.md +23 -4
- package/docs/ms/reference/visual/border-radius.md +36 -4
- package/docs/ms/reference/visual/border-style.md +25 -4
- package/docs/ms/reference/visual/border-width.md +29 -8
- package/docs/ms/reference/visual/border.md +56 -7
- package/docs/ms/reference/visual/box-shadow.md +34 -4
- package/docs/ms/reference/visual/caret-color.md +25 -8
- package/docs/ms/reference/visual/color-scheme.md +23 -4
- package/docs/ms/reference/visual/cursor.md +25 -4
- package/docs/ms/reference/visual/field-sizing.md +23 -4
- package/docs/ms/reference/visual/fill.md +29 -8
- package/docs/ms/reference/visual/filter-blur.md +29 -8
- package/docs/ms/reference/visual/filter-brightness.md +29 -8
- package/docs/ms/reference/visual/filter-contrast.md +29 -8
- package/docs/ms/reference/visual/filter-drop-shadow.md +29 -8
- package/docs/ms/reference/visual/filter-grayscale.md +29 -8
- package/docs/ms/reference/visual/filter-hue-rotate.md +29 -8
- package/docs/ms/reference/visual/filter-invert.md +27 -8
- package/docs/ms/reference/visual/filter-saturate.md +29 -8
- package/docs/ms/reference/visual/filter-sepia.md +29 -8
- package/docs/ms/reference/visual/font-family.md +25 -4
- package/docs/ms/reference/visual/font-smoothing.md +23 -4
- package/docs/ms/reference/visual/font-style.md +23 -4
- package/docs/ms/reference/visual/font-variant-numeric.md +23 -4
- package/docs/ms/reference/visual/font-weight.md +35 -4
- package/docs/ms/reference/visual/forced-color-adjust.md +23 -4
- package/docs/ms/reference/visual/hyphens.md +25 -4
- package/docs/ms/reference/visual/letter-spacing.md +29 -8
- package/docs/ms/reference/visual/line-clamp.md +29 -8
- package/docs/ms/reference/visual/line-height.md +29 -8
- package/docs/ms/reference/visual/list-style.md +25 -4
- package/docs/ms/reference/visual/mask.md +25 -8
- package/docs/ms/reference/visual/opacity.md +27 -4
- package/docs/ms/reference/visual/outline.md +25 -8
- package/docs/ms/reference/visual/pointer-events.md +23 -4
- package/docs/ms/reference/visual/resize.md +27 -4
- package/docs/ms/reference/visual/scroll-behavior.md +23 -4
- package/docs/ms/reference/visual/scroll-margin.md +25 -8
- package/docs/ms/reference/visual/scroll-padding.md +25 -8
- package/docs/ms/reference/visual/scroll-snap-align.md +25 -4
- package/docs/ms/reference/visual/scroll-snap-stop.md +23 -4
- package/docs/ms/reference/visual/scroll-snap-type.md +25 -4
- package/docs/ms/reference/visual/state-prefixes.md +21 -4
- package/docs/ms/reference/visual/stroke-width.md +29 -8
- package/docs/ms/reference/visual/stroke.md +27 -8
- package/docs/ms/reference/visual/text-alignment.md +25 -4
- package/docs/ms/reference/visual/text-color.md +31 -8
- package/docs/ms/reference/visual/text-decoration.md +23 -4
- package/docs/ms/reference/visual/text-indent.md +25 -8
- package/docs/ms/reference/visual/text-overflow.md +21 -4
- package/docs/ms/reference/visual/text-shadow.md +25 -8
- package/docs/ms/reference/visual/text-size.md +41 -7
- package/docs/ms/reference/visual/text-transform.md +25 -4
- package/docs/ms/reference/visual/text-wrap.md +25 -4
- package/docs/ms/reference/visual/touch-action.md +25 -4
- package/docs/ms/reference/visual/transform-backface.md +23 -4
- package/docs/ms/reference/visual/transform-origin.md +27 -8
- package/docs/ms/reference/visual/transform-perspective-origin.md +25 -8
- package/docs/ms/reference/visual/transform-perspective.md +25 -8
- package/docs/ms/reference/visual/transform-rotate.md +29 -8
- package/docs/ms/reference/visual/transform-scale.md +29 -8
- package/docs/ms/reference/visual/transform-skew.md +29 -8
- package/docs/ms/reference/visual/transform-style.md +23 -4
- package/docs/ms/reference/visual/transform-translate.md +29 -8
- package/docs/ms/reference/visual/transition-delay.md +25 -8
- package/docs/ms/reference/visual/transition-duration.md +27 -8
- package/docs/ms/reference/visual/transition-property.md +21 -4
- package/docs/ms/reference/visual/transition-timing.md +29 -8
- package/docs/ms/reference/visual/typography-keywords.md +27 -4
- package/docs/ms/reference/visual/user-select.md +23 -4
- package/docs/ms/reference/visual/vertical-align.md +25 -4
- package/docs/ms/reference/visual/whitespace.md +25 -4
- package/docs/ms/reference/visual/will-change.md +23 -4
- package/docs/ms/reference/visual/word-break.md +25 -4
- package/docs/public/assets/senangstart-css-logo.svg +1 -0
- package/docs/reference/breakpoints.md +23 -0
- package/docs/reference/layout/align-content.md +57 -4
- package/docs/reference/layout/align-items.md +81 -4
- package/docs/reference/layout/align-self.md +25 -4
- package/docs/reference/layout/aspect-ratio.md +27 -8
- package/docs/reference/layout/border-collapse.md +81 -4
- package/docs/reference/layout/border-spacing.md +43 -8
- package/docs/reference/layout/box-sizing.md +21 -4
- package/docs/reference/layout/caption-side.md +69 -4
- package/docs/reference/layout/columns.md +21 -4
- package/docs/reference/layout/container.md +21 -4
- package/docs/reference/layout/display.md +39 -7
- package/docs/reference/layout/flex-basis.md +29 -8
- package/docs/reference/layout/flex-direction.md +81 -4
- package/docs/reference/layout/flex-items.md +51 -4
- package/docs/reference/layout/flex-wrap.md +55 -4
- package/docs/reference/layout/flex.md +54 -7
- package/docs/reference/layout/float-clear.md +23 -4
- package/docs/reference/layout/grid-auto-flow.md +57 -4
- package/docs/reference/layout/grid-auto-sizing.md +25 -4
- package/docs/reference/layout/grid-column-span.md +59 -4
- package/docs/reference/layout/grid-columns.md +61 -4
- package/docs/reference/layout/grid-row-span.md +29 -4
- package/docs/reference/layout/grid-rows.md +31 -4
- package/docs/reference/layout/inset.md +56 -7
- package/docs/reference/layout/isolation.md +21 -4
- package/docs/reference/layout/justify-content.md +81 -4
- package/docs/reference/layout/justify-items.md +25 -4
- package/docs/reference/layout/justify-self.md +25 -4
- package/docs/reference/layout/object-fit.md +57 -4
- package/docs/reference/layout/object-position.md +29 -8
- package/docs/reference/layout/order.md +53 -4
- package/docs/reference/layout/overflow.md +45 -4
- package/docs/reference/layout/overscroll.md +21 -4
- package/docs/reference/layout/place-content.md +23 -4
- package/docs/reference/layout/place-items.md +25 -4
- package/docs/reference/layout/place-self.md +25 -4
- package/docs/reference/layout/position.md +47 -4
- package/docs/reference/layout/shorthand-alignment.md +47 -4
- package/docs/reference/layout/table-layout.md +69 -4
- package/docs/reference/layout/visibility.md +25 -4
- package/docs/reference/layout/z-index.md +27 -4
- package/docs/reference/space/gap.md +71 -7
- package/docs/reference/space/height.md +61 -7
- package/docs/reference/space/margin.md +61 -7
- package/docs/reference/space/padding.md +65 -7
- package/docs/reference/space/width.md +61 -7
- package/docs/reference/visual/accent-color.md +29 -8
- package/docs/reference/visual/animation-builtin.md +29 -8
- package/docs/reference/visual/animation-delay.md +25 -8
- package/docs/reference/visual/animation-direction.md +25 -4
- package/docs/reference/visual/animation-duration.md +27 -8
- package/docs/reference/visual/animation-fill.md +25 -4
- package/docs/reference/visual/animation-iteration.md +23 -4
- package/docs/reference/visual/animation-play.md +23 -4
- package/docs/reference/visual/appearance.md +23 -4
- package/docs/reference/visual/backdrop-blur.md +29 -8
- package/docs/reference/visual/backdrop-brightness.md +29 -8
- package/docs/reference/visual/backdrop-contrast.md +29 -8
- package/docs/reference/visual/backdrop-grayscale.md +27 -8
- package/docs/reference/visual/backdrop-hue-rotate.md +29 -8
- package/docs/reference/visual/backdrop-invert.md +27 -8
- package/docs/reference/visual/backdrop-opacity.md +29 -8
- package/docs/reference/visual/backdrop-saturate.md +29 -8
- package/docs/reference/visual/backdrop-sepia.md +27 -8
- package/docs/reference/visual/background-attachment.md +23 -4
- package/docs/reference/visual/background-blend-mode.md +25 -4
- package/docs/reference/visual/background-clip.md +21 -4
- package/docs/reference/visual/background-color.md +33 -8
- package/docs/reference/visual/background-image.md +27 -8
- package/docs/reference/visual/background-origin.md +25 -4
- package/docs/reference/visual/background-position.md +29 -8
- package/docs/reference/visual/background-repeat.md +25 -4
- package/docs/reference/visual/background-size.md +29 -8
- package/docs/reference/visual/blend-modes.md +23 -4
- package/docs/reference/visual/border-radius.md +36 -4
- package/docs/reference/visual/border-style.md +25 -4
- package/docs/reference/visual/border-width.md +29 -8
- package/docs/reference/visual/border.md +56 -7
- package/docs/reference/visual/box-shadow.md +34 -4
- package/docs/reference/visual/caret-color.md +25 -8
- package/docs/reference/visual/color-scheme.md +23 -4
- package/docs/reference/visual/cursor.md +25 -4
- package/docs/reference/visual/field-sizing.md +23 -4
- package/docs/reference/visual/fill.md +29 -8
- package/docs/reference/visual/filter-blur.md +29 -8
- package/docs/reference/visual/filter-brightness.md +29 -8
- package/docs/reference/visual/filter-contrast.md +29 -8
- package/docs/reference/visual/filter-drop-shadow.md +29 -8
- package/docs/reference/visual/filter-grayscale.md +29 -8
- package/docs/reference/visual/filter-hue-rotate.md +29 -8
- package/docs/reference/visual/filter-invert.md +27 -8
- package/docs/reference/visual/filter-saturate.md +29 -8
- package/docs/reference/visual/filter-sepia.md +29 -8
- package/docs/reference/visual/font-family.md +25 -4
- package/docs/reference/visual/font-smoothing.md +23 -4
- package/docs/reference/visual/font-style.md +23 -4
- package/docs/reference/visual/font-variant-numeric.md +23 -4
- package/docs/reference/visual/font-weight.md +35 -4
- package/docs/reference/visual/forced-color-adjust.md +23 -4
- package/docs/reference/visual/hyphens.md +25 -4
- package/docs/reference/visual/letter-spacing.md +29 -8
- package/docs/reference/visual/line-clamp.md +29 -8
- package/docs/reference/visual/line-height.md +29 -8
- package/docs/reference/visual/list-style.md +25 -4
- package/docs/reference/visual/mask.md +25 -8
- package/docs/reference/visual/opacity.md +27 -4
- package/docs/reference/visual/outline.md +25 -8
- package/docs/reference/visual/pointer-events.md +23 -4
- package/docs/reference/visual/resize.md +27 -4
- package/docs/reference/visual/scroll-behavior.md +23 -4
- package/docs/reference/visual/scroll-margin.md +25 -8
- package/docs/reference/visual/scroll-padding.md +25 -8
- package/docs/reference/visual/scroll-snap-align.md +25 -4
- package/docs/reference/visual/scroll-snap-stop.md +23 -4
- package/docs/reference/visual/scroll-snap-type.md +25 -4
- package/docs/reference/visual/state-prefixes.md +21 -4
- package/docs/reference/visual/stroke-width.md +29 -8
- package/docs/reference/visual/stroke.md +27 -8
- package/docs/reference/visual/text-alignment.md +25 -4
- package/docs/reference/visual/text-color.md +31 -8
- package/docs/reference/visual/text-decoration.md +23 -4
- package/docs/reference/visual/text-indent.md +25 -8
- package/docs/reference/visual/text-overflow.md +21 -4
- package/docs/reference/visual/text-shadow.md +25 -8
- package/docs/reference/visual/text-size.md +41 -7
- package/docs/reference/visual/text-transform.md +25 -4
- package/docs/reference/visual/text-wrap.md +25 -4
- package/docs/reference/visual/touch-action.md +25 -4
- package/docs/reference/visual/transform-backface.md +23 -4
- package/docs/reference/visual/transform-origin.md +27 -8
- package/docs/reference/visual/transform-perspective-origin.md +25 -8
- package/docs/reference/visual/transform-perspective.md +25 -8
- package/docs/reference/visual/transform-rotate.md +29 -8
- package/docs/reference/visual/transform-scale.md +29 -8
- package/docs/reference/visual/transform-skew.md +29 -8
- package/docs/reference/visual/transform-style.md +23 -4
- package/docs/reference/visual/transform-translate.md +29 -8
- package/docs/reference/visual/transition-delay.md +25 -8
- package/docs/reference/visual/transition-duration.md +27 -8
- package/docs/reference/visual/transition-property.md +21 -4
- package/docs/reference/visual/transition-timing.md +29 -8
- package/docs/reference/visual/typography-keywords.md +27 -4
- package/docs/reference/visual/user-select.md +23 -4
- package/docs/reference/visual/vertical-align.md +25 -4
- package/docs/reference/visual/whitespace.md +25 -4
- package/docs/reference/visual/will-change.md +23 -4
- package/docs/reference/visual/word-break.md +25 -4
- package/package.json +2 -1
- package/playground/jit-tw-mix-test.html +238 -0
- package/playground/tw-convertor.html +696 -0
- package/scripts/build-dist.js +34 -29
- package/scripts/bundle-jit.js +45 -0
- package/scripts/convert-tailwind.js +759 -0
- package/scripts/generate-docs.js +65 -16
- package/src/cdn/jit.js +313 -102
- package/src/cli/commands/build.js +14 -6
- package/src/cli/commands/dev.js +28 -10
- package/src/compiler/generators/css.js +187 -28
- package/src/compiler/parser.js +23 -10
- package/src/compiler/tokenizer.js +19 -137
- package/src/config/defaults.js +45 -18
- package/src/core/constants.js +427 -0
- package/src/core/tokenizer-core.js +233 -0
- package/src/definitions/layout-alignment.js +210 -0
- package/src/definitions/layout-flex.js +155 -0
- package/src/definitions/layout-grid.js +134 -0
- package/src/definitions/layout-positioning.js +64 -0
- package/src/definitions/layout-table.js +129 -0
- package/src/definitions/layout-utilities.js +164 -0
- package/src/definitions/space.js +172 -0
- package/src/definitions/visual-backgrounds.js +231 -0
- package/src/definitions/visual-borders.js +66 -0
- package/src/definitions/visual-filters.js +111 -0
- package/src/definitions/visual-interactivity.js +159 -0
- package/src/definitions/visual-svg.js +41 -0
- package/src/definitions/visual-transform3d.js +74 -0
- package/src/definitions/visual-transforms.js +69 -0
- package/src/definitions/visual-transitions.js +144 -0
- package/src/definitions/visual-typography.js +214 -0
- package/src/definitions/visual.js +306 -1
- package/tests/integration/compiler.test.js +63 -2
- package/tests/unit/convert-tailwind.test.js +324 -0
- package/tests/unit/security.test.js +206 -0
|
@@ -24,6 +24,18 @@ export const transitionProperty = {
|
|
|
24
24
|
],
|
|
25
25
|
examples: [
|
|
26
26
|
{ code: '<button visual="transition:all hover:bg:primary">Smooth hover</button>', description: 'Smooth transition' }
|
|
27
|
+
],
|
|
28
|
+
preview: [
|
|
29
|
+
{
|
|
30
|
+
title: 'Transition',
|
|
31
|
+
titleMs: 'Peralihan',
|
|
32
|
+
description: 'Smooth property changes',
|
|
33
|
+
descriptionMs: 'Perubahan properti yang lancar',
|
|
34
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
35
|
+
<button space="p:small" visual="bg:primary text:white rounded:small transition:all">transition:all</button>
|
|
36
|
+
</div>`,
|
|
37
|
+
highlightValue: 'transition:all'
|
|
38
|
+
}
|
|
27
39
|
]
|
|
28
40
|
};
|
|
29
41
|
|
|
@@ -50,6 +62,19 @@ export const transitionDuration = {
|
|
|
50
62
|
],
|
|
51
63
|
examples: [
|
|
52
64
|
{ code: '<div visual="transition:all duration:slow">Slow transition</div>', description: 'Slow duration' }
|
|
65
|
+
],
|
|
66
|
+
preview: [
|
|
67
|
+
{
|
|
68
|
+
title: 'Duration',
|
|
69
|
+
titleMs: 'Tempoh',
|
|
70
|
+
description: 'Control transition speed',
|
|
71
|
+
descriptionMs: 'Kawal kelajuan peralihan',
|
|
72
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
73
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">fast: 150ms</div>
|
|
74
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">slow: 300ms</div>
|
|
75
|
+
</div>`,
|
|
76
|
+
highlightValue: 'duration:slow'
|
|
77
|
+
}
|
|
53
78
|
]
|
|
54
79
|
};
|
|
55
80
|
|
|
@@ -73,6 +98,20 @@ export const transitionTiming = {
|
|
|
73
98
|
],
|
|
74
99
|
examples: [
|
|
75
100
|
{ code: '<div visual="transition:all ease:out">Ease out effect</div>', description: 'Ease out timing' }
|
|
101
|
+
],
|
|
102
|
+
preview: [
|
|
103
|
+
{
|
|
104
|
+
title: 'Timing Function',
|
|
105
|
+
titleMs: 'Fungsi Masa',
|
|
106
|
+
description: 'Control acceleration curve',
|
|
107
|
+
descriptionMs: 'Kawal lengkung pecutan',
|
|
108
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
109
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">ease:in</div>
|
|
110
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">ease:out</div>
|
|
111
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">ease:in-out</div>
|
|
112
|
+
</div>`,
|
|
113
|
+
highlightValue: 'ease:out'
|
|
114
|
+
}
|
|
76
115
|
]
|
|
77
116
|
};
|
|
78
117
|
|
|
@@ -97,6 +136,18 @@ export const transitionDelay = {
|
|
|
97
136
|
],
|
|
98
137
|
examples: [
|
|
99
138
|
{ code: '<div visual="transition:all delay:slow">Delayed transition</div>', description: 'Delayed start' }
|
|
139
|
+
],
|
|
140
|
+
preview: [
|
|
141
|
+
{
|
|
142
|
+
title: 'Transition Delay',
|
|
143
|
+
titleMs: 'Kelewatan Peralihan',
|
|
144
|
+
description: 'Delay before transition starts',
|
|
145
|
+
descriptionMs: 'Kelewatan sebelum peralihan bermula',
|
|
146
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
147
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">delay:slow (300ms)</div>
|
|
148
|
+
</div>`,
|
|
149
|
+
highlightValue: 'delay:slow'
|
|
150
|
+
}
|
|
100
151
|
]
|
|
101
152
|
};
|
|
102
153
|
|
|
@@ -121,6 +172,20 @@ export const animation = {
|
|
|
121
172
|
],
|
|
122
173
|
examples: [
|
|
123
174
|
{ code: '<div visual="animate:spin">Loading...</div>', description: 'Spinning loader' }
|
|
175
|
+
],
|
|
176
|
+
preview: [
|
|
177
|
+
{
|
|
178
|
+
title: 'Built-in Animations',
|
|
179
|
+
titleMs: 'Animasi Terbina Dalam',
|
|
180
|
+
description: 'Ready-to-use animations',
|
|
181
|
+
descriptionMs: 'Animasi sedia guna',
|
|
182
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
183
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">spin</div>
|
|
184
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">pulse</div>
|
|
185
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">bounce</div>
|
|
186
|
+
</div>`,
|
|
187
|
+
highlightValue: 'animate:spin'
|
|
188
|
+
}
|
|
124
189
|
]
|
|
125
190
|
};
|
|
126
191
|
|
|
@@ -147,6 +212,19 @@ export const animationDuration = {
|
|
|
147
212
|
],
|
|
148
213
|
examples: [
|
|
149
214
|
{ code: '<div visual="animate:spin animation-duration:slow">Slow spin</div>', description: 'Slow animation' }
|
|
215
|
+
],
|
|
216
|
+
preview: [
|
|
217
|
+
{
|
|
218
|
+
title: 'Animation Duration',
|
|
219
|
+
titleMs: 'Tempoh Animasi',
|
|
220
|
+
description: 'Control animation speed',
|
|
221
|
+
descriptionMs: 'Kawal kelajuan animasi',
|
|
222
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
223
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">fast: 150ms</div>
|
|
224
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">slow: 300ms</div>
|
|
225
|
+
</div>`,
|
|
226
|
+
highlightValue: 'animation-duration:slow'
|
|
227
|
+
}
|
|
150
228
|
]
|
|
151
229
|
};
|
|
152
230
|
|
|
@@ -171,6 +249,18 @@ export const animationDelay = {
|
|
|
171
249
|
],
|
|
172
250
|
examples: [
|
|
173
251
|
{ code: '<div visual="animate:bounce animation-delay:slow">Delayed bounce</div>', description: 'Delayed animation' }
|
|
252
|
+
],
|
|
253
|
+
preview: [
|
|
254
|
+
{
|
|
255
|
+
title: 'Animation Delay',
|
|
256
|
+
titleMs: 'Kelewatan Animasi',
|
|
257
|
+
description: 'Delay before animation starts',
|
|
258
|
+
descriptionMs: 'Kelewatan sebelum animasi bermula',
|
|
259
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
260
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">delay:slow (300ms)</div>
|
|
261
|
+
</div>`,
|
|
262
|
+
highlightValue: 'animation-delay:slow'
|
|
263
|
+
}
|
|
174
264
|
]
|
|
175
265
|
};
|
|
176
266
|
|
|
@@ -192,6 +282,19 @@ export const animationIteration = {
|
|
|
192
282
|
],
|
|
193
283
|
examples: [
|
|
194
284
|
{ code: '<div visual="animate:bounce animation-iteration:1">Bounce once</div>', description: 'Single iteration' }
|
|
285
|
+
],
|
|
286
|
+
preview: [
|
|
287
|
+
{
|
|
288
|
+
title: 'Animation Iteration',
|
|
289
|
+
titleMs: 'Ulangan Animasi',
|
|
290
|
+
description: 'Control number of loops',
|
|
291
|
+
descriptionMs: 'Kawal bilangan gelung',
|
|
292
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
293
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">1 (once)</div>
|
|
294
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">infinite</div>
|
|
295
|
+
</div>`,
|
|
296
|
+
highlightValue: 'animation-iteration:1'
|
|
297
|
+
}
|
|
195
298
|
]
|
|
196
299
|
};
|
|
197
300
|
|
|
@@ -214,6 +317,20 @@ export const animationDirection = {
|
|
|
214
317
|
],
|
|
215
318
|
examples: [
|
|
216
319
|
{ code: '<div visual="animate:bounce animation-direction:alternate">Alternating</div>', description: 'Alternate direction' }
|
|
320
|
+
],
|
|
321
|
+
preview: [
|
|
322
|
+
{
|
|
323
|
+
title: 'Animation Direction',
|
|
324
|
+
titleMs: 'Arah Animasi',
|
|
325
|
+
description: 'Control playback direction',
|
|
326
|
+
descriptionMs: 'Kawal arah main balik',
|
|
327
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
328
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">normal</div>
|
|
329
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">reverse</div>
|
|
330
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">alternate</div>
|
|
331
|
+
</div>`,
|
|
332
|
+
highlightValue: 'animation-direction:alternate'
|
|
333
|
+
}
|
|
217
334
|
]
|
|
218
335
|
};
|
|
219
336
|
|
|
@@ -236,6 +353,20 @@ export const animationFill = {
|
|
|
236
353
|
],
|
|
237
354
|
examples: [
|
|
238
355
|
{ code: '<div visual="animate:bounce animation-fill:forwards">Stays at end</div>', description: 'Keep final position' }
|
|
356
|
+
],
|
|
357
|
+
preview: [
|
|
358
|
+
{
|
|
359
|
+
title: 'Animation Fill',
|
|
360
|
+
titleMs: 'Pengisian Animasi',
|
|
361
|
+
description: 'Control state before/after animation',
|
|
362
|
+
descriptionMs: 'Kawal keadaan sebelum/selepas animasi',
|
|
363
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
364
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">none</div>
|
|
365
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">forwards</div>
|
|
366
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">both</div>
|
|
367
|
+
</div>`,
|
|
368
|
+
highlightValue: 'animation-fill:forwards'
|
|
369
|
+
}
|
|
239
370
|
]
|
|
240
371
|
};
|
|
241
372
|
|
|
@@ -256,6 +387,19 @@ export const animationPlay = {
|
|
|
256
387
|
],
|
|
257
388
|
examples: [
|
|
258
389
|
{ code: '<div visual="animate:spin hover:animation-play:paused">Pause on hover</div>', description: 'Pause on hover' }
|
|
390
|
+
],
|
|
391
|
+
preview: [
|
|
392
|
+
{
|
|
393
|
+
title: 'Animation Play State',
|
|
394
|
+
titleMs: 'Keadaan Main Animasi',
|
|
395
|
+
description: 'Pause or resume animations',
|
|
396
|
+
descriptionMs: 'Jeda atau sambung animasi',
|
|
397
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
398
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">running</div>
|
|
399
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">paused</div>
|
|
400
|
+
</div>`,
|
|
401
|
+
highlightValue: 'animation-play:paused'
|
|
402
|
+
}
|
|
259
403
|
]
|
|
260
404
|
};
|
|
261
405
|
|
|
@@ -22,6 +22,20 @@ export const textAlignment = {
|
|
|
22
22
|
],
|
|
23
23
|
examples: [
|
|
24
24
|
{ code: '<p visual="text:center">Centered text</p>', description: 'Center text' }
|
|
25
|
+
],
|
|
26
|
+
preview: [
|
|
27
|
+
{
|
|
28
|
+
title: 'Text Alignment',
|
|
29
|
+
titleMs: 'Penjajaran Teks',
|
|
30
|
+
description: 'Align text within container',
|
|
31
|
+
descriptionMs: 'Jajarkan teks dalam bekas',
|
|
32
|
+
html: `<div layout="flex col" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
33
|
+
<div visual="text:left bg:primary text:white rounded:small" space="p:small">left</div>
|
|
34
|
+
<div visual="text:center bg:primary text:white rounded:small" space="p:small">center</div>
|
|
35
|
+
<div visual="text:right bg:primary text:white rounded:small" space="p:small">right</div>
|
|
36
|
+
</div>`,
|
|
37
|
+
highlightValue: 'text:center'
|
|
38
|
+
}
|
|
25
39
|
]
|
|
26
40
|
};
|
|
27
41
|
|
|
@@ -44,6 +58,20 @@ export const textTransform = {
|
|
|
44
58
|
],
|
|
45
59
|
examples: [
|
|
46
60
|
{ code: '<span visual="uppercase">Uppercase text</span>', description: 'Uppercase' }
|
|
61
|
+
],
|
|
62
|
+
preview: [
|
|
63
|
+
{
|
|
64
|
+
title: 'Text Transform',
|
|
65
|
+
titleMs: 'Ubah Kes Teks',
|
|
66
|
+
description: 'Change text case',
|
|
67
|
+
descriptionMs: 'Ubah kes teks',
|
|
68
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
69
|
+
<span space="p:small" visual="bg:primary text:white rounded:small" style="text-transform: uppercase;">upper</span>
|
|
70
|
+
<span space="p:small" visual="bg:primary text:white rounded:small" style="text-transform: lowercase;">LOWER</span>
|
|
71
|
+
<span space="p:small" visual="bg:primary text:white rounded:small" style="text-transform: capitalize;">capitalize</span>
|
|
72
|
+
</div>`,
|
|
73
|
+
highlightValue: 'uppercase'
|
|
74
|
+
}
|
|
47
75
|
]
|
|
48
76
|
};
|
|
49
77
|
|
|
@@ -66,6 +94,19 @@ export const textDecoration = {
|
|
|
66
94
|
],
|
|
67
95
|
examples: [
|
|
68
96
|
{ code: '<a visual="no-underline">No underline link</a>', description: 'Remove underline' }
|
|
97
|
+
],
|
|
98
|
+
preview: [
|
|
99
|
+
{
|
|
100
|
+
title: 'Text Decoration',
|
|
101
|
+
titleMs: 'Hiasan Teks',
|
|
102
|
+
description: 'Add lines to text',
|
|
103
|
+
descriptionMs: 'Tambah garis pada teks',
|
|
104
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
105
|
+
<span space="p:small" visual="bg:primary text:white rounded:small" style="text-decoration: underline;">underline</span>
|
|
106
|
+
<span space="p:small" visual="bg:primary text:white rounded:small" style="text-decoration: line-through;">line-through</span>
|
|
107
|
+
</div>`,
|
|
108
|
+
highlightValue: 'underline'
|
|
109
|
+
}
|
|
69
110
|
]
|
|
70
111
|
};
|
|
71
112
|
|
|
@@ -87,6 +128,18 @@ export const textOverflow = {
|
|
|
87
128
|
],
|
|
88
129
|
examples: [
|
|
89
130
|
{ code: '<div visual="truncate">Very long text that gets truncated...</div>', description: 'Truncate text' }
|
|
131
|
+
],
|
|
132
|
+
preview: [
|
|
133
|
+
{
|
|
134
|
+
title: 'Text Overflow',
|
|
135
|
+
titleMs: 'Limpahan Teks',
|
|
136
|
+
description: 'Handle overflowing text',
|
|
137
|
+
descriptionMs: 'Kendalikan teks yang melimpah',
|
|
138
|
+
html: `<div space="p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
139
|
+
<div space="p:small" visual="bg:primary text:white rounded:small" style="width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">This is truncated text...</div>
|
|
140
|
+
</div>`,
|
|
141
|
+
highlightValue: 'truncate'
|
|
142
|
+
}
|
|
90
143
|
]
|
|
91
144
|
};
|
|
92
145
|
|
|
@@ -109,6 +162,20 @@ export const textWrap = {
|
|
|
109
162
|
],
|
|
110
163
|
examples: [
|
|
111
164
|
{ code: '<h1 visual="text-balance">Balanced heading</h1>', description: 'Balanced text' }
|
|
165
|
+
],
|
|
166
|
+
preview: [
|
|
167
|
+
{
|
|
168
|
+
title: 'Text Wrap',
|
|
169
|
+
titleMs: 'Pembalutan Teks',
|
|
170
|
+
description: 'Control line wrapping',
|
|
171
|
+
descriptionMs: 'Kawal pembalutan baris',
|
|
172
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
173
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">wrap</div>
|
|
174
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">nowrap</div>
|
|
175
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">balance</div>
|
|
176
|
+
</div>`,
|
|
177
|
+
highlightValue: 'text-balance'
|
|
178
|
+
}
|
|
112
179
|
]
|
|
113
180
|
};
|
|
114
181
|
|
|
@@ -133,6 +200,20 @@ export const whitespace = {
|
|
|
133
200
|
],
|
|
134
201
|
examples: [
|
|
135
202
|
{ code: '<pre visual="whitespace:pre">Preserved whitespace</pre>', description: 'Preserve whitespace' }
|
|
203
|
+
],
|
|
204
|
+
preview: [
|
|
205
|
+
{
|
|
206
|
+
title: 'Whitespace',
|
|
207
|
+
titleMs: 'Ruang Putih',
|
|
208
|
+
description: 'Control whitespace handling',
|
|
209
|
+
descriptionMs: 'Kawal pengendalian ruang putih',
|
|
210
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
211
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">normal</div>
|
|
212
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">nowrap</div>
|
|
213
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">pre</div>
|
|
214
|
+
</div>`,
|
|
215
|
+
highlightValue: 'whitespace:pre'
|
|
216
|
+
}
|
|
136
217
|
]
|
|
137
218
|
};
|
|
138
219
|
|
|
@@ -155,6 +236,20 @@ export const wordBreak = {
|
|
|
155
236
|
],
|
|
156
237
|
examples: [
|
|
157
238
|
{ code: '<div visual="break-words">Long words break properly</div>', description: 'Break long words' }
|
|
239
|
+
],
|
|
240
|
+
preview: [
|
|
241
|
+
{
|
|
242
|
+
title: 'Word Break',
|
|
243
|
+
titleMs: 'Pemecahan Perkataan',
|
|
244
|
+
description: 'Control word breaking',
|
|
245
|
+
descriptionMs: 'Kawal pemecahan perkataan',
|
|
246
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
247
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">normal</div>
|
|
248
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">break-words</div>
|
|
249
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">break-all</div>
|
|
250
|
+
</div>`,
|
|
251
|
+
highlightValue: 'break-words'
|
|
252
|
+
}
|
|
158
253
|
]
|
|
159
254
|
};
|
|
160
255
|
|
|
@@ -176,6 +271,20 @@ export const hyphens = {
|
|
|
176
271
|
],
|
|
177
272
|
examples: [
|
|
178
273
|
{ code: '<p visual="hyphens:auto">Automatic hyphenation</p>', description: 'Auto hyphens' }
|
|
274
|
+
],
|
|
275
|
+
preview: [
|
|
276
|
+
{
|
|
277
|
+
title: 'Hyphens',
|
|
278
|
+
titleMs: 'Sempang',
|
|
279
|
+
description: 'Control automatic hyphenation',
|
|
280
|
+
descriptionMs: 'Kawal sempang automatik',
|
|
281
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
282
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">none</div>
|
|
283
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">manual</div>
|
|
284
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">auto</div>
|
|
285
|
+
</div>`,
|
|
286
|
+
highlightValue: 'hyphens:auto'
|
|
287
|
+
}
|
|
179
288
|
]
|
|
180
289
|
};
|
|
181
290
|
|
|
@@ -198,6 +307,18 @@ export const textIndent = {
|
|
|
198
307
|
],
|
|
199
308
|
examples: [
|
|
200
309
|
{ code: '<p visual="indent:medium">Indented paragraph</p>', description: 'Indented text' }
|
|
310
|
+
],
|
|
311
|
+
preview: [
|
|
312
|
+
{
|
|
313
|
+
title: 'Text Indent',
|
|
314
|
+
titleMs: 'Inden Teks',
|
|
315
|
+
description: 'Indent first line of text',
|
|
316
|
+
descriptionMs: 'Inden baris pertama teks',
|
|
317
|
+
html: `<div space="p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
318
|
+
<p visual="bg:primary text:white rounded:small" space="p:small" style="text-indent: 2rem;">Indented text example...</p>
|
|
319
|
+
</div>`,
|
|
320
|
+
highlightValue: 'indent:medium'
|
|
321
|
+
}
|
|
201
322
|
]
|
|
202
323
|
};
|
|
203
324
|
|
|
@@ -224,6 +345,20 @@ export const verticalAlign = {
|
|
|
224
345
|
],
|
|
225
346
|
examples: [
|
|
226
347
|
{ code: '<img visual="align:middle">Vertically centered</img>', description: 'Middle alignment' }
|
|
348
|
+
],
|
|
349
|
+
preview: [
|
|
350
|
+
{
|
|
351
|
+
title: 'Vertical Align',
|
|
352
|
+
titleMs: 'Penjajaran Menegak',
|
|
353
|
+
description: 'Align inline elements',
|
|
354
|
+
descriptionMs: 'Jajarkan elemen sebaris',
|
|
355
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
356
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">top</div>
|
|
357
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">middle</div>
|
|
358
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">bottom</div>
|
|
359
|
+
</div>`,
|
|
360
|
+
highlightValue: 'align:middle'
|
|
361
|
+
}
|
|
227
362
|
]
|
|
228
363
|
};
|
|
229
364
|
|
|
@@ -244,6 +379,19 @@ export const fontStyle = {
|
|
|
244
379
|
],
|
|
245
380
|
examples: [
|
|
246
381
|
{ code: '<em visual="not-italic">Normal style emphasis</em>', description: 'Remove italic' }
|
|
382
|
+
],
|
|
383
|
+
preview: [
|
|
384
|
+
{
|
|
385
|
+
title: 'Font Style',
|
|
386
|
+
titleMs: 'Gaya Fon',
|
|
387
|
+
description: 'Italic or normal text',
|
|
388
|
+
descriptionMs: 'Teks italic atau normal',
|
|
389
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
390
|
+
<span space="p:small" visual="bg:primary text:white rounded:small" style="font-style: italic;">italic</span>
|
|
391
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">normal</span>
|
|
392
|
+
</div>`,
|
|
393
|
+
highlightValue: 'italic'
|
|
394
|
+
}
|
|
247
395
|
]
|
|
248
396
|
};
|
|
249
397
|
|
|
@@ -264,6 +412,19 @@ export const fontSmoothing = {
|
|
|
264
412
|
],
|
|
265
413
|
examples: [
|
|
266
414
|
{ code: '<body visual="antialiased">Smooth fonts</body>', description: 'Antialiased text' }
|
|
415
|
+
],
|
|
416
|
+
preview: [
|
|
417
|
+
{
|
|
418
|
+
title: 'Font Smoothing',
|
|
419
|
+
titleMs: 'Penghalusan Fon',
|
|
420
|
+
description: 'Control text rendering',
|
|
421
|
+
descriptionMs: 'Kawal persembahan teks',
|
|
422
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
423
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">antialiased</div>
|
|
424
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">subpixel</div>
|
|
425
|
+
</div>`,
|
|
426
|
+
highlightValue: 'antialiased'
|
|
427
|
+
}
|
|
267
428
|
]
|
|
268
429
|
};
|
|
269
430
|
|
|
@@ -288,6 +449,20 @@ export const lineClamp = {
|
|
|
288
449
|
],
|
|
289
450
|
examples: [
|
|
290
451
|
{ code: '<p visual="line-clamp:3">Text limited to 3 lines...</p>', description: 'Clamp to 3 lines' }
|
|
452
|
+
],
|
|
453
|
+
preview: [
|
|
454
|
+
{
|
|
455
|
+
title: 'Line Clamp',
|
|
456
|
+
titleMs: 'Had Baris',
|
|
457
|
+
description: 'Limit text to specific lines',
|
|
458
|
+
descriptionMs: 'Hadkan teks kepada baris tertentu',
|
|
459
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
460
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">1</div>
|
|
461
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">2</div>
|
|
462
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">3</div>
|
|
463
|
+
</div>`,
|
|
464
|
+
highlightValue: 'line-clamp:3'
|
|
465
|
+
}
|
|
291
466
|
]
|
|
292
467
|
};
|
|
293
468
|
|
|
@@ -312,6 +487,20 @@ export const listStyle = {
|
|
|
312
487
|
],
|
|
313
488
|
examples: [
|
|
314
489
|
{ code: '<ul visual="list:none">No bullets</ul>', description: 'Remove bullets' }
|
|
490
|
+
],
|
|
491
|
+
preview: [
|
|
492
|
+
{
|
|
493
|
+
title: 'List Style',
|
|
494
|
+
titleMs: 'Gaya Senarai',
|
|
495
|
+
description: 'Control list markers',
|
|
496
|
+
descriptionMs: 'Kawal penanda senarai',
|
|
497
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
498
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">none</div>
|
|
499
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">disc</div>
|
|
500
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">decimal</div>
|
|
501
|
+
</div>`,
|
|
502
|
+
highlightValue: 'list:none'
|
|
503
|
+
}
|
|
315
504
|
]
|
|
316
505
|
};
|
|
317
506
|
|
|
@@ -335,6 +524,18 @@ export const textShadow = {
|
|
|
335
524
|
],
|
|
336
525
|
examples: [
|
|
337
526
|
{ code: '<h1 visual="text-shadow:medium">Shadowed heading</h1>', description: 'Text shadow' }
|
|
527
|
+
],
|
|
528
|
+
preview: [
|
|
529
|
+
{
|
|
530
|
+
title: 'Text Shadow',
|
|
531
|
+
titleMs: 'Bayang Teks',
|
|
532
|
+
description: 'Add shadow to text',
|
|
533
|
+
descriptionMs: 'Tambah bayang pada teks',
|
|
534
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
535
|
+
<div space="p:small" visual="bg:primary text:white rounded:small" style="text-shadow: 0 2px 4px rgba(0,0,0,0.3);">shadow</div>
|
|
536
|
+
</div>`,
|
|
537
|
+
highlightValue: 'text-shadow:medium'
|
|
538
|
+
}
|
|
338
539
|
]
|
|
339
540
|
};
|
|
340
541
|
|
|
@@ -360,6 +561,19 @@ export const fontVariantNumeric = {
|
|
|
360
561
|
],
|
|
361
562
|
examples: [
|
|
362
563
|
{ code: '<span visual="tabular-nums">123,456.00</span>', description: 'Tabular numbers' }
|
|
564
|
+
],
|
|
565
|
+
preview: [
|
|
566
|
+
{
|
|
567
|
+
title: 'Font Variant Numeric',
|
|
568
|
+
titleMs: 'Varian Nombor Fon',
|
|
569
|
+
description: 'Control number display',
|
|
570
|
+
descriptionMs: 'Kawal paparan nombor',
|
|
571
|
+
html: `<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
572
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">tabular-nums</div>
|
|
573
|
+
<div space="p:small" visual="bg:primary text:white rounded:small">ordinal</div>
|
|
574
|
+
</div>`,
|
|
575
|
+
highlightValue: 'tabular-nums'
|
|
576
|
+
}
|
|
363
577
|
]
|
|
364
578
|
};
|
|
365
579
|
|